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

Running a unit test with code coverage enabled does not generate data in coverage.csv #333

Open
roelrz opened this issue Jul 9, 2014 · 2 comments

Comments

@roelrz
Copy link
Contributor

roelrz commented Jul 9, 2014

The command line option -c or --coverage enables code coverage for a unit test.

However, no actually data is written to the coverage.csv file.

Files worth investigating:

  • lib/testrun.js [defineProperties()]
  • lib/executor.js [shutdown()]
  • lib/coverage.js [writeSummary()]
@zackthehuman
Copy link

Yeah, I was surprised by this myself to find that the generated coverage.csv contained only headings and no data.

@derekbrown
Copy link

@roelrz @zackthehuman I've found the root of this issue; we were using @venus-include instead of @VenuS-Code to include the files that we wanted to record coverage for.

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

No branches or pull requests

3 participants