commit | 32527017531d0a9efef14f890d0502f7bf614e33 | [log] [tgz] |
---|---|---|
author | Ian Hickson <ian@hixie.ch> | Mon May 16 12:53:13 2016 -0700 |
committer | Ian Hickson <ian@hixie.ch> | Mon May 16 12:53:13 2016 -0700 |
tree | 983fed8bf76ad9dd064feba05fa297ddf2f3b7cc | |
parent | 5fa6c0e9b08813e67d266b3137eb92c67c954b49 [diff] |
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.
Flutter is a new way to build high-performance, cross-platform mobile apps. Flutter is optimized for today‘s, and tomorrow’s, mobile devices. We are focused on low-latency input and high frame rates on Android and iOS.
Flutter is an early-stage open-source project. We are still missing core features like accessibility, text input, localization, and more. However, you can build demos and examples today. We hope you try it out and send us feedback.
For information about using Flutter to build apps, please see the getting started guide.
For information about contributing code to Flutter itself, please see CONTRIBUTING.md.
Join us on IRC at #flutter
on Freenode or join our mailing list, flutter-dev@googlegroups.com.