Commit 148565ee authored by Yegor's avatar Yegor Committed by GitHub

check existence of task files (#10959)

parent 2ebb9e5d
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:flutter_devicelab/framework/manifest.dart'; import 'package:flutter_devicelab/framework/manifest.dart';
...@@ -16,6 +18,12 @@ void main() { ...@@ -16,6 +18,12 @@ void main() {
expect(task.description, 'Measures the startup time of the Flutter Gallery app on Android.\n'); expect(task.description, 'Measures the startup time of the Flutter Gallery app on Android.\n');
expect(task.stage, 'devicelab'); expect(task.stage, 'devicelab');
expect(task.requiredAgentCapabilities, <String>['linux/android']); expect(task.requiredAgentCapabilities, <String>['linux/android']);
for (ManifestTask task in manifest.tasks) {
final File taskFile = new File('bin/tasks/${task.name}.dart');
expect(taskFile.existsSync(), true,
reason: 'File ${taskFile.path} corresponding to manifest task "${task.name}" not found');
}
}); });
}); });
......
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