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 test code coverage reporting #850

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

jacobdfriedmann
Copy link
Contributor

Fixes #828 by updating the nyc configuration.

This builds on the work of @IlyaRucavitcyn's fork. Turns out the issue was the npm test command is setting the BABEL_ENV environment variable to commonjs, which doesn't have the required istanbul plugin.

To fix this, I just added the commonjs env plugin to the babel test environment and then switched npm test to use BABEL_ENV=test.

It now seems to produce an accurate coverage report and coverage.lcov is no longer empty after running npm run coverage.

screen shot 2018-01-06 at 8 43 47 am

@timdorr
Copy link
Member

timdorr commented Feb 16, 2018

Sorry, I forgot to look at this! Thanks!

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.

test cases coverge coverage.Icov is empty
2 participants