You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user is using package:// in their tests, coverage will not be reported because the "lib" is not appended to the path. Here's a dirty hack to get this working:
pub.bat run coverage:format_coverage --in coverage.json --package-root=/c/Users/codefu/dart/ --report-on=lib | less
In lib/resolver.dart:
var resolved =resolveSymbolicLinks(p.join(packageRoot, path));
if (resolved ==null&& path.contains('/')) {
// try adding lib for projects that use package:lib
path = path.replaceFirst('/', '/lib/');
resolved =resolveSymbolicLinks(p.join(packageRoot, path));
}
return resolved;
If the user is using package:// in their tests, coverage will not be reported because the "lib" is not appended to the path. Here's a dirty hack to get this working:
pub.bat run coverage:format_coverage --in coverage.json --package-root=/c/Users/codefu/dart/ --report-on=lib | less
In lib/resolver.dart:
Output as expected!
If you are fine with this, I can make a pull request.
The text was updated successfully, but these errors were encountered: