pocesar/grunt-mocha-istanbul

Does this work with a mocha html test runner?

Closed this issue · 4 comments

Does this work with a mocha html test runner?

Well, actually I'm not sure, because it uses istanbul cover and mocha command line executables, so it won't catch anything that is ran inside a browser.

Is this going to be part of the plugin someday or is not in the roadmap?
Thanks

this would requiring using both libraries programatically inside the task instead of relying on the command line, I guess would make it less flexible and more error prone

this would require another version of the task, using PhantomJS. I recomend using Karma for browser testing and coverage reports, which can generate coverage report just fine