Run all tests in examples/ (#138374)

https://github.com/flutter/flutter/pull/138253 demonstrated that the tests for the textures example weren't actually running on CI. This changes the testing script to execute the tests for everything inside the `examples` directory.
This commit is contained in:
Michael Goderbauer 2023-11-14 10:22:03 -08:00 committed by GitHub
parent 7f6842cde7
commit 0a0adf7c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -842,9 +842,12 @@ Future<void> _runFrameworkTests() async {
workingDirectory: path.join(flutterRoot, 'examples', 'api'),
);
}
await _runFlutterTest(path.join(flutterRoot, 'examples', 'api'));
await _runFlutterTest(path.join(flutterRoot, 'examples', 'hello_world'));
await _runFlutterTest(path.join(flutterRoot, 'examples', 'layers'));
for (final FileSystemEntity entity in Directory(path.join(flutterRoot, 'examples')).listSync()) {
if (entity is! Directory || !Directory(path.join(entity.path, 'test')).existsSync()) {
continue;
}
await _runFlutterTest(entity.path);
}
}
Future<void> runTracingTests() async {