freaktechnik / istanbul-jpm

Istanbul Instrumenter and coverage export for Firefox Add-on SDK extensions tested with JPM
https://www.npmjs.com/package/istanbul-jpm
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

How can I use istanbul-jpm without grunt-istanbul? #8

Open groovecoder opened 7 years ago

groovecoder commented 7 years ago

I'm trying to remove Grunt from a jpm add-on template. I'm having a really hard time understanding how I can use istanbul-jpm without grunt-istanbul.

I've been able to use istanbul to instrument my add-on files. But I don't know how to run istanbul cover with jpm to generate a coverage report ...

$ ./node_modules/.bin/istanbul cover ./node_modules/.bin/jpm -- test --tbpl -b Aurora
...
6 of 6 tests passed.
All tests passed!
No coverage information was collected, exit without writing coverage information

I need to change my instrument step to use the this istanbul-jpm Instrumenter right? How can I do that without grunt-istanbul?

freaktechnik commented 7 years ago

I have never used a custom instrumenter without grunt with istanbul, however at least via istanbul node API it should be possible for sure.