marcopeg / grunt-mocha-chai-sinon

Simple test runner task for NodeJS
8 stars 3 forks source link

Coverage #7

Open thxmike opened 9 years ago

thxmike commented 9 years ago

Do you have any clear examples on how to get the coverage to work? I have spent a few hours trying to get it to work. I am able to generate a file but I keep getting 0% coverage.

I have reviewed your repo and the third party vendors you reference to find the right configuration for this to work but nothing. I would also like to know that are the allowable values are for reporters...

marcopeg commented 9 years ago

Hi @thxmike, I can't provide examples straight away as I dropped Grunt in favor of Gulp.

But test coverage reports were working for me straight out of the box, maybe it's just that new versions of the vendors packages provide different configuration keys.

Consider that this package is only a glue between the various systems. I did almost no business logic here.

When you get it to work please share your discoveries here.

bcowgill commented 8 years ago

My Gruntfile has coverage working with this if you want to look. Sorry it's not a 'simple' example

https://github.com/bcowgill/perljs/blob/master/Gruntfile.js