tapasvimoturu / grunt-code-coverage-enforcer

This is a grunt task that will read the LCOV file and fails the build if it doesn't meet the specified thresholds
8 stars 12 forks source link

Standardize filename by stripping './' #2

Closed redgeoff closed 10 years ago

redgeoff commented 10 years ago

This is a fix for the problem described at http://stackoverflow.com/questions/24456267/grunt-code-coverage-enforcer-doesnt-fail-on-threshhold-limits. I was having the same problem and it appears to occur because the lconv.info generated by karma-coverage contains references to files that start with a "./", e.g. ./app/scripts/myfactory1.js

tapasvimoturu commented 10 years ago

Thanks Geoff,

I will test it with existing projects and merge once everything goes through fine. I may change the method name as part of the merge. Thanks for contributing back, we would love to hear any other issues that you are facing.

We are committed to making this as easy to use and as pain-free as possible.

redgeoff commented 10 years ago

@tapasvimoturu looking forward to it!