diff --git a/pubspec.yaml b/pubspec.yaml index b80af833..1f866898 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 diff --git a/tool/format_coverage.dart b/tool/format_coverage.dart index 721bd069..25cc0943 100644 --- a/tool/format_coverage.dart +++ b/tool/format_coverage.dart @@ -11,11 +11,10 @@ Future 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); }