gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 786 forks source link

No coverage information was collected, exit without writing coverage information #813

Open Grantlyk opened 7 years ago

Grantlyk commented 7 years ago

image

Tests all run fine, however I cannot get istanbul to generate a coverage report, i've went through the other issues and tried what is mentioned there, here is the command I am using to run it: babel-node ./node_modules/istanbul/lib/cli cover ./node_modules/.bin/_mocha

shangxiao commented 7 years ago

@Grantlyk use the latest pre-release version of Istanbul. Note you can just use the babel-register rather than using babel-node if you prefer.