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

Commit

Permalink
Update coverage formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Jan 25, 2022
1 parent 3a9349b commit 6e07a75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ dev_dependencies:
build_test: ^2.1.0
web_socket_channel: ^2.0.0
test: ^1.9.0
coverage: ^1.0.1
coverage: ^1.1.0
7 changes: 3 additions & 4 deletions tool/format_coverage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ Future<void> main() async {
.where((entity) => entity is File)
.map((entity) => entity as File)
.toList();
final coverage = await parseCoverage(files, 0);

final formatter =
LcovFormatter(resolver, reportOn: ['lib', 'test'], basePath: '.');
final output = await formatter.format(coverage);
final coverage = await HitMap.parseFiles(files);

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

0 comments on commit 6e07a75

Please sign in to comment.