[flutter_tools] Make setting of CWD consistent for flutter test (#74622)

This commit is contained in:
Jia Hao
2021-01-26 14:34:03 +08:00
committed by GitHub
parent 2eeeba9c09
commit 22f1700427
10 changed files with 26 additions and 24 deletions

View File

@@ -42,6 +42,10 @@ void main() {
return _testFile('trivial_widget', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero);
});
testWithoutContext('flutter test set the working directory correctly', () async {
return _testFile('working_directory', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero);
});
testWithoutContext('flutter test should report nice errors for exceptions thrown within testWidgets()', () async {
return _testFile('exception_handling', automatedTestsDirectory, flutterTestDirectory);
});