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:
parent
7f6842cde7
commit
0a0adf7c7f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user