Unverified Commit 5c9d09f0 authored by Pasindu De Silva's avatar Pasindu De Silva Committed by GitHub

Add the ability to ignore lines from coverage depending on comments (#61408)

parent af47958e
......@@ -66,7 +66,11 @@ class CoverageCollector extends TestWatcher {
assert(data != null);
_logMessage('($observatoryUri): collected coverage data; merging...');
_addHitmap(await coverage.createHitmap(data['coverage'] as List<Map<String, dynamic>>));
_addHitmap(await coverage.createHitmap(
data['coverage'] as List<Map<String, dynamic>>,
packagesPath: globalPackagesPath,
checkIgnoredLines: true,
));
_logMessage('($observatoryUri): done merging coverage data into global coverage map.');
}
......@@ -98,7 +102,11 @@ class CoverageCollector extends TestWatcher {
assert(data != null);
_logMessage('pid $pid ($observatoryUri): collected coverage data; merging...');
_addHitmap(await coverage.createHitmap(data['coverage'] as List<Map<String, dynamic>>));
_addHitmap(await coverage.createHitmap(
data['coverage'] as List<Map<String, dynamic>>,
packagesPath: globalPackagesPath,
checkIgnoredLines: true,
));
_logMessage('pid $pid ($observatoryUri): done merging coverage data into global coverage map.');
}
......
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