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
9524b611
Unverified
Commit
9524b611
authored
Oct 18, 2018
by
Yegor
Committed by
GitHub
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip coverage due to
https://github.com/dart-lang/sdk/issues/34841
(#23224)
parent
44c0080a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
test.dart
dev/bots/test.dart
+20
-18
No files found.
dev/bots/test.dart
View file @
9524b611
...
...
@@ -193,26 +193,28 @@ Future<void> _runTests() async {
print
(
'
${bold}
DONE: All tests successful.
$reset
'
);
}
// TODO(yjbanov): re-enable coverage collection when https://github.com/dart-lang/sdk/issues/34841 is fixed.
Future
<
void
>
_runCoverage
()
async
{
final
File
coverageFile
=
File
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
,
'coverage'
,
'lcov.info'
));
if
(!
coverageFile
.
existsSync
())
{
print
(
'
${red}
Coverage file not found.
$reset
'
);
print
(
'Expected to find:
${coverageFile.absolute}
'
);
print
(
'This file is normally obtained by running `flutter update-packages`.'
);
exit
(
1
);
}
coverageFile
.
deleteSync
();
await
_runFlutterTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
),
options:
const
<
String
>[
'--coverage'
],
);
if
(!
coverageFile
.
existsSync
())
{
print
(
'
${red}
Coverage file not found.
$reset
'
);
print
(
'Expected to find:
${coverageFile.absolute}
'
);
print
(
'This file should have been generated by the `flutter test --coverage` script, but was not.'
);
exit
(
1
);
}
print
(
'
${bold}
DONE: Coverage collection SKIPPED due to https://github.com/dart-lang/sdk/issues/34841.
$reset
'
);
// final File coverageFile = File(path.join(flutterRoot, 'packages', 'flutter', 'coverage', 'lcov.info'));
// if (!coverageFile.existsSync()) {
// print('${red}Coverage file not found.$reset');
// print('Expected to find: ${coverageFile.absolute}');
// print('This file is normally obtained by running `flutter update-packages`.');
// exit(1);
// }
// coverageFile.deleteSync();
// await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter'),
// options: const <String>['--coverage'],
// );
// if (!coverageFile.existsSync()) {
// print('${red}Coverage file not found.$reset');
// print('Expected to find: ${coverageFile.absolute}');
// print('This file should have been generated by the `flutter test --coverage` script, but was not.');
// exit(1);
// }
print
(
'
${bold}
DONE: Coverage collection successful.
$reset
'
);
//
print('${bold}DONE: Coverage collection successful.$reset');
}
Future
<
void
>
_pubRunTest
(
...
...
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