-
Notifications
You must be signed in to change notification settings - Fork 59
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
print coverage report #4
Conversation
done :) |
I'm afraid I'm not happy with this solution, if you instrument tests, the tests take often more than twice as long to run. When you are developing you need to be able to quickly run tests, without wanting the overhead of instrumentation. We can make the default for |
really valid point. If the impact is 2x, totally agree that we should have an option to avoid cov
Let's go with the initial idea of |
|
gulp.task('mocha', ['pre-test'], () => { | ||
return gulp.src([ | ||
'test/node.js', | ||
'test/**/*.spec.js' |
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.
13:40 no wait the globs for istanbul need to be the same as for mocha so it doesn't load browser.js
This is the same as https://github.com/dignifiedquire/dignified.js/blob/master/tasks/test/node.js#L12-L13
What else would you like me to add?
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.
I meant make the one on l12 the same as this
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 instrument the src
on l12 with Istanbul, and run tests with mocha. We don't need to instrument the tests folder.
Thanks |
This prints the coverage reports after the tests are run. Though adding it as a separate step, but that would mean tests are run twice, which can be very expensive for some of our modules that have very long tests.
Also, by printing the reports but not strictly enforcing a coverage minimum, we make devs aware of how the changes impacted the overall coverage.
What do you think?