mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() 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. |
||
---|---|---|
.. | ||
test_data | ||
expression_evaluation_test.dart | ||
flutter_attach_test.dart | ||
flutter_tester_test.dart | ||
hot_reload_test.dart | ||
lifetime_test.dart | ||
README.md | ||
test_driver.dart | ||
test_utils.dart |
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