-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
added --all flag for indicating that all files should have coverage applied #44
Conversation
The rename and implementation changes are fine with me 👍 |
@ronkorving awesome, did you try it out on a few of your modules? does it do the trick -- if so I'll get this merged tonight. |
I'm having issues, will report back once I find out what it is. |
By the way, running nyc with an unknown option (I first used --complete) gives a very cryptic error:
|
content, | ||
'./' + relFile | ||
glob.sync('**/*.js').forEach(function (filename) { | ||
var obj = _this.addFile(filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are now reading full file contents of files that should be excluded. Potentially quite a painful performance hit.
So for some reason, I'm getting this error on this file (a few thousand files up to this point did not give an error):
While running: ./node_modules/.bin/nyc --all ./node_modules/.bin/tape test/*.js And while having added a console.log statement to see which file was blowing up:
|
I understand the problem now. Before, node_modules was being ignored and we didn't read anything. I would recommend some refactoring here to:
|
@ronkorving give that update a shot. With regards to the error you're seeing passing |
Looks good, let me try again 👍 |
\o/ victory! |
Good to go? :) Sorry for the impatience, but I can't wait to integrate this into my projects. |
added --all flag for indicating that all files should have coverage applied
Awesome :) If you could follow that up with an NPM release, you'll have made my day ;) |
@ronkorving go ahead and try:
I'm going to test out the changes on a few of my libraries, and if everything is looking good will move the the tag |
I have no idea how to update my package.json file to use @next (this concept of next/latest is new to me). But with a manual install as you showed, it all works fine for me 👍 |
I opted for the flag
--all
rather than--complete
and added a some tests.@ronkorving mind trying out this branch and letting me know if it does the trick for you?