Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicate paths in coverage.json on Windows when using include-all-sources #49

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

mgiles
Copy link

@mgiles mgiles commented Dec 1, 2016

Currently on Windows two different paths are stored on the coverage object when using include-all-sources. The coverage data from the test run is stored using the normalized path, since it is put through path.join. The coverage data from addUncoveredFiles uses the unnormalized paths returned by grunt.file.expand.

This means on Windows every instrumented file that is executed by a test has an extra entry in the coverage file from addUncoveredFiles.

Normalizing the paths at the very start seems like an easy way to make everything consistent.

@taichi taichi merged commit 44ab4ee into taichi:master Dec 1, 2016
@taichi
Copy link
Owner

taichi commented Dec 1, 2016

thanks for your work. and I release this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants