pocesar / grunt-mocha-istanbul

Almost config-free Istanbul code coverage reporter for Mocha usage in Grunt
MIT License
75 stars 23 forks source link

Require function #35

Closed fpayer closed 9 years ago

fpayer commented 9 years ago

Is it possible to require a function in the same way the grunt-mocha-test allows? When I try to do that, I get a "Cannot find module" error.

pocesar commented 9 years ago

not in the current state of the library. it uses command lines, grunt-mocha-test use mocha programatically

fpayer commented 9 years ago

So the makeshift solution is to just make a small js file to execute the function?

pocesar commented 9 years ago

yeah, that would suffice