flutter/packages/flutter_tools/test/integration
Ian Hickson 3dec6a6930
Clean up usage of temporary directories (#20682)
All temporary directory start with `flutter_` and have their random component separated from the name by a period, as in `flutter_test_bundle.YFYQMY`.

I've tried to find some of the places where we didn't cleanly delete temporary directories, too. This greatly reduces, though it does not entirely eliminate, the directories we leave behind when running tests, especially `flutter_tools` tests.

While I was at it I standardized on `tempDir` as the variable name for temporary directories, since it was the most common, removing occurrences of `temp` and `tmp`, among others.

Also I factored out some common code that used to catch exceptions that happen on Windows, and made more places use that pattern.
2018-08-17 13:17:23 -07:00
..
test_data Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
expression_evaluation_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
flutter_attach_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
flutter_tester_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
hot_reload_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
lifetime_test.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07:00
README.md
test_driver.dart Clean up usage of temporary directories (#20682) 2018-08-17 13:17:23 -07: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