flutter/packages/flutter_tools/test/integration
Danny Tuppeny ed9afbbc72
Add --machine support for flutter attach (#19077)
* Extract some of startApp into a reusable method

* Get basic attach --machine working

* Attach --machine tweaks

Move validation to validate method and create daemon early so we get the startup event before trying to get a connection.

* Bump daemon version so we know whether it's valid to flutter attach

* Tweak output text

* Swap package imports for relative

* Review tweaks (naming, formatting, typedefs)

* Separate arguments from process spawning

This will make calling attach easier

* Add a basic test for flutter attach --machine

* Fix crash if port unforward modifies the list of forwarded ports

* Add a no-op port forwarder for flutter-tester

* Switch to using BasicProject instead of our own inline code

* Fix expectation in test now we have a portForwarder

* Remove stale TODO (this is done)

* Tweak formatting

* Change some Completers to void to fix Dart 2 issues
2018-07-19 13:38:29 +01:00
..
test_data Improve flutter tools integration tests (#18865) 2018-07-10 06:51:12 +01:00
expression_evaluation_test.dart Improve flutter tools integration tests (#18865) 2018-07-10 06:51:12 +01:00
flutter_attach.dart Add --machine support for flutter attach (#19077) 2018-07-19 13:38:29 +01:00
flutter_tester_test.dart Improve flutter tools integration tests (#18865) 2018-07-10 06:51:12 +01:00
hot_reload_test.dart Improve flutter tools integration tests (#18865) 2018-07-10 06:51:12 +01:00
README.md Integration test for FlutterTesterDevice. (#16424) 2018-04-11 08:52:17 -07:00
test_driver.dart Add --machine support for flutter attach (#19077) 2018-07-19 13:38:29 +01:00
test_utils.dart Improve flutter tools integration tests (#18865) 2018-07-10 06:51:12 +01:00

Integration tests

These tests are not hermetic, and use actual Flutter SDK. While they don't require actual devices, they run flutter_tester to test Dart VM and Flutter integration.

Some of these tests change the current directory for the process, so only one test can be run at a time. Use this command to run:

../../bin/cache/dart-sdk/bin/pub run test -j1