climboid
climboid

Reputation: 6952

Istanbul lcov report missing tests

I'm running mocha with istanbul, es6 and babel. When I run my npm script

"test-coverage-client": "istanbul cover .mocha \"./client/**/*.test.{jsx,js}\" -- --compilers js:babel-core/register --require setup.js ",

I see all the unit tests ran and I get the Coverage Summary, but my lcov-report index file is missing a bunch of unit tests. Any clues on what might be wrong?

Upvotes: 2

Views: 426

Answers (1)

Uday
Uday

Reputation: 1215

Its old but thought its worth sharing the answer. I also had the same problem and was able to find a way to include all the test source files with the parameter "--include-all-sources".

Upvotes: 1

Related Questions