flutter/packages/flutter_tools/test/integration
Danny Tuppeny 8b0227b4a3
Don't time out if process terminates when told to stop (#21103)
* Don't time out if process terminates when told to stop but response was not processed

While trying to reproduce #20822 I found a condition where the app may quit before the `app.stop` response is received but this code (which is called in integration test teardown) would sit around waiting and time out. With this change, the process exit is considered a valid response to the stop request.

* Add process exit to log for better errors in failures

This log can be turned on for debugging but is also dumped when a test fails (in certain conditions). With this in the log, it'll be clear if the timeout is because we're waiting for an event but the process quit.
2018-08-28 18:26:46 +01:00
..
test_data Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
expression_evaluation_test.dart Re-enable integration tests (#20947) 2018-08-27 09:29:07 +01:00
flutter_attach_test.dart Re-enable integration tests (#20947) 2018-08-27 09:29:07 +01:00
flutter_tester_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
hot_reload_test.dart Re-enable integration tests (#20947) 2018-08-27 09:29:07 +01:00
lifetime_test.dart Re-enable integration tests (#20947) 2018-08-27 09:29:07 +01:00
README.md Integration test for FlutterTesterDevice. (#16424) 2018-04-11 08:52:17 -07:00
test_driver.dart Don't time out if process terminates when told to stop (#21103) 2018-08-28 18:26:46 +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