cgiffard / SteamShovel

Your current coverage tool is lying to you. This one will hurt your feelings.
BSD 3-Clause "New" or "Revised" License
105 stars 3 forks source link

support cover command like `istanbul` #1

Open Raynos opened 10 years ago

Raynos commented 10 years ago

Istanbul has a higher level interface for coverage.

istanbul cover file.js

This operation means istanbul will apply code coverage to file.js and everything it requires except node_modules , test and tests folders.

It will then execute the covered version of file.js with node.

It would be nice if SteamShovel also had such an interface

cgiffard commented 10 years ago

The CLI is pretty barebones at this stage. I'll look into implementing that shortly. :)

riston commented 10 years ago

Yeah, that would be great feature. I got problem with the Mocha Shovel reporter, the current reporter is not separate node module. How would the Mocha find the reporter files ?

cgiffard commented 10 years ago

If you install it globally, mocha can find the reporter with -R.

mocha -R steamshovel tests/mytest.js

But I am looking to implement this feature request too. :)