venus.js icon indicating copy to clipboard operation
venus.js copied to clipboard

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

Open roelrz opened this issue 11 years ago • 2 comments

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()]

roelrz avatar Jul 09 '14 18:07 roelrz

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

zackthehuman avatar Jul 09 '14 18:07 zackthehuman

@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.

derekbrown avatar Sep 16 '14 17:09 derekbrown