Skip to content

Commit ed4377c

Browse files
yjbanovgspencergoog
authored andcommitted
check existence of task files (flutter#10959)
1 parent a6c5e60 commit ed4377c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/devicelab/test/manifest_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
import 'dart:io';
6+
57
import 'package:test/test.dart';
68

79
import 'package:flutter_devicelab/framework/manifest.dart';
@@ -16,6 +18,12 @@ void main() {
1618
expect(task.description, 'Measures the startup time of the Flutter Gallery app on Android.\n');
1719
expect(task.stage, 'devicelab');
1820
expect(task.requiredAgentCapabilities, <String>['linux/android']);
21+
22+
for (ManifestTask task in manifest.tasks) {
23+
final File taskFile = new File('bin/tasks/${task.name}.dart');
24+
expect(taskFile.existsSync(), true,
25+
reason: 'File ${taskFile.path} corresponding to manifest task "${task.name}" not found');
26+
}
1927
});
2028
});
2129

0 commit comments

Comments
 (0)