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

Fix Windows coverage errors #1102

Merged
merged 1 commit into from
Sep 28, 2017
Merged

Conversation

RedSparr0w
Copy link
Member

Refer #1101
Provide relative path to _mocha for istanbul
Currently creates errors on windows machines when trying to run a coverage test
closes #1101

Provide relative path to `_mocha`
@paulmelnikow
Copy link
Member

Hmmm, having to do this seems like a bug in istanbul. Have you tried upgrading, and/or seeing if a bug was reported upstream?

@paulmelnikow
Copy link
Member

Gotcha, I didn't see the details from #1101. It links to gotwarlost/istanbul#90 (comment) which suggests the fix proposed here.

Furthermore, this is from the Istanbul readme:

Usage on Windows

Istanbul assumes that the command passed to it is a JS file (e.g. Jasmine, vows etc.), this is however not true on Windows where npm wrap bin files in a .cmd file. Since Istanbul can not parse .cmd files you need to reference the bin file manually.

(Seems kind of ridiculous if you ask me!)

@paulmelnikow paulmelnikow merged commit 76a9633 into badges:master Sep 28, 2017
@RedSparr0w
Copy link
Member Author

Oh yeah, forgot to link to that comment!
Thanks for merging 😄

@RedSparr0w RedSparr0w deleted the windows_coverage branch November 1, 2017 20:22
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.

coverage test errors on windows
2 participants