mirror of
https://github.com/flutter/samples.git
synced 2026-04-02 17:52:56 +00:00
Testing sample (#500)
This commit is contained in:
15
testing_app/test_driver/app.dart
Normal file
15
testing_app/test_driver/app.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2020 The Flutter team. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
import 'package:testing_app/main.dart' as app;
|
||||
|
||||
void main() {
|
||||
// This line enables the extension.
|
||||
enableFlutterDriverExtension();
|
||||
|
||||
// Call the `main()` function of the app, or call `runApp` with
|
||||
// any widget you are interested in testing.
|
||||
app.main();
|
||||
}
|
||||
Reference in New Issue
Block a user