Reputation: 2922
Is there a way to use JSCoverage to have code coverage for nodeunit?
I know there is nodeunit2
, but my code is not in lib, and I do not want to restructure my project.
Upvotes: 3
Views: 352
Reputation: 13766
Sure... Just follow the steps in this example.
The key elements being:
jscoverage
command on the directory (or directories) that house your codeUpvotes: 1