venus.js
venus.js copied to clipboard
Running a unit test with code coverage enabled does not generate data in coverage.csv
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()]
Yeah, I was surprised by this myself to find that the generated coverage.csv contained only headings and no data.
@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.