Unverified Commit 9524b611 authored by Yegor's avatar Yegor Committed by GitHub

skip coverage due to https://github.com/dart-lang/sdk/issues/34841 (#23224)

parent 44c0080a
......@@ -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(
......
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