Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 6e07a75

Browse files
committed
Update coverage formatting
1 parent 3a9349b commit 6e07a75

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ dev_dependencies:
3333
build_test: ^2.1.0
3434
web_socket_channel: ^2.0.0
3535
test: ^1.9.0
36-
coverage: ^1.0.1
36+
coverage: ^1.1.0

tool/format_coverage.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ Future<void> main() async {
1111
.where((entity) => entity is File)
1212
.map((entity) => entity as File)
1313
.toList();
14-
final coverage = await parseCoverage(files, 0);
1514

16-
final formatter =
17-
LcovFormatter(resolver, reportOn: ['lib', 'test'], basePath: '.');
18-
final output = await formatter.format(coverage);
15+
final coverage = await HitMap.parseFiles(files);
1916

17+
final output =
18+
coverage.formatLcov(resolver, reportOn: ['lib', 'test'], basePath: '.');
2019
await File('lcov.info').writeAsString(output);
2120
}

0 commit comments

Comments
 (0)