Unverified Commit 0a0adf7c authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

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.
parent 7f6842cd
...@@ -842,9 +842,12 @@ Future<void> _runFrameworkTests() async { ...@@ -842,9 +842,12 @@ Future<void> _runFrameworkTests() async {
workingDirectory: path.join(flutterRoot, 'examples', 'api'), workingDirectory: path.join(flutterRoot, 'examples', 'api'),
); );
} }
await _runFlutterTest(path.join(flutterRoot, 'examples', 'api')); for (final FileSystemEntity entity in Directory(path.join(flutterRoot, 'examples')).listSync()) {
await _runFlutterTest(path.join(flutterRoot, 'examples', 'hello_world')); if (entity is! Directory || !Directory(path.join(entity.path, 'test')).existsSync()) {
await _runFlutterTest(path.join(flutterRoot, 'examples', 'layers')); continue;
}
await _runFlutterTest(entity.path);
}
} }
Future<void> runTracingTests() async { Future<void> runTracingTests() async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment