From 0a0adf7c7fc1eaf35aafcb0144ce86771ab33280 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Tue, 14 Nov 2023 10:22:03 -0800 Subject: [PATCH] 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. --- dev/bots/test.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index a8c06c8a5a..b13d851540 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -842,9 +842,12 @@ Future _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 runTracingTests() async {