Unverified Commit 94376395 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] fix coverage measurement to report on lib and not test (#52093)

parent 6c408a05
...@@ -243,7 +243,15 @@ Future<void> _runToolCoverage() async { ...@@ -243,7 +243,15 @@ Future<void> _runToolCoverage() async {
coverage: 'coverage', coverage: 'coverage',
); );
await runCommand(pub, await runCommand(pub,
<String>['run', 'coverage:format_coverage', '--lcov', '--in=coverage', '--out=coverage/lcov.info'], <String>[
'run',
'coverage:format_coverage',
'--lcov',
'--in=coverage',
'--out=coverage/lcov.info',
'--packages=.packages',
'--report-on=lib/'
],
workingDirectory: toolRoot, workingDirectory: toolRoot,
outputMode: OutputMode.discard, outputMode: OutputMode.discard,
); );
......
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