Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
148565ee
Commit
148565ee
authored
Jun 24, 2017
by
Yegor
Committed by
GitHub
Jun 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check existence of task files (#10959)
parent
2ebb9e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
manifest_test.dart
dev/devicelab/test/manifest_test.dart
+8
-0
No files found.
dev/devicelab/test/manifest_test.dart
View file @
148565ee
...
@@ -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'
);
}
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment