Closed kennetpostigo closed 8 years ago
:+1: I'm encountering the same issue
To my knowledge: istanbul has never worked with mocha when using compilers. Try running your tests with babel-node
.
@jmcriffey how so?
I've tried:
babel-node node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- test --recursive --compilers js:babel-core/register
But it didn't work: same error No coverage information was collected, exit without writing coverage information
appears. :(
@lfilho You CANNOT use --compilers js:babel-core/register
. That is causing another process to be spawned and istanbul cannot read coverage from it. Remove that part and see if it starts working.
babel-node node_modules/babel-istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- test --recursive
Hey guys I was able to get it up and running :)
@jmcriffey that's right! Now it works! Thanks!
I miss the --print both
option though :( :innocent:
Hello, Im currently trying to implement babel-istanbul with travis, codecov, and ghooks. But I keep getting the errors that no coverage information is being collected. I'm not sure why. I've been attempting to get this to work and have looked through tons of articles and gists, but none help me out.
This is package.json file:
This is what happens when I run the
test:single
(at the end it says "No coverage information was collected, exit without writing coverage information"):This is what happens when I run check-coverage to check the quality with babel-istanbul:
I really hope someone can help me out, any and all help & feedback is very much appreciated.