flutter/packages/flutter_tools/test
Ian Hickson 3252701753 Make it possible to run tests live on a device (#3936)
This makes it possible to substitute 'flutter run' for 'flutter test'
and actually watch a test run on a device.

For any test that depends on flutter_test:

1. Remove any import of 'package:test/test.dart'.

2. Replace `testWidgets('...', (WidgetTester tester) {`
      with `testWidgets('...', (WidgetTester tester) async {`

3. Add an "await" in front of calls to any of the following:
    * tap()
    * tapAt()
    * fling()
    * flingFrom()
    * scroll()
    * scrollAt()
    * pump()
    * pumpWidget()

4. Replace any calls to `tester.flushMicrotasks()` with calls to
   `await tester.idle()`.

There's a guarding API that you can use, if you have particularly
complicated tests, to get better error messages. Search for
TestAsyncUtils.
2016-05-16 12:53:13 -07:00
..
src allow per-command analytics suppression (#3919) 2016-05-15 20:06:27 -07:00
adb_test.dart Enable always_declare_return_types lint 2016-03-09 17:57:39 -08:00
all.dart Consolidate observatory code (#3892) 2016-05-12 18:15:23 -07:00
analytics_test.dart Remove ArtifactStore and move flutterRoot into Cache (#3883) 2016-05-12 15:54:35 -07:00
analyze_duplicate_names_test.dart Duplicate test fix. 2016-05-05 13:39:58 -07:00
analyze_test.dart run pub with --no-package-symlinks 2016-03-29 19:02:14 -07:00
android_device_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
android_sdk_test.dart handle android n in the android sdk 2016-03-17 15:30:47 -07:00
base_utils_test.dart Enable always_declare_return_types lint 2016-03-09 17:57:39 -08:00
context_test.dart Enable always_declare_return_types lint 2016-03-09 17:57:39 -08:00
create_test.dart Remove ArtifactStore and move flutterRoot into Cache (#3883) 2016-05-12 15:54:35 -07:00
daemon_test.dart fix analysis errors (#3677) 2016-05-03 09:09:00 -07:00
device_test.dart Enable always_declare_return_types lint 2016-03-09 17:57:39 -08:00
devices.test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
drive_test.dart remove the --checked option (#3799) 2016-05-09 10:58:47 -07:00
install_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
listen_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
logs_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
os_utils_test.dart Enable always_declare_return_types lint 2016-03-09 17:57:39 -08:00
protocol_discovery_test.dart Consolidate observatory code (#3892) 2016-05-12 18:15:23 -07:00
run_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
stop_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
test_test.dart Make it possible to run tests live on a device (#3936) 2016-05-16 12:53:13 -07:00
toolchain_test.dart Remove BuildConfigurations (#3879) 2016-05-12 12:22:15 -07:00
trace_test.dart Prefer implict equals matcher in test expectations. 2016-05-04 13:58:45 -07:00
upgrade_test.dart Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00