forked from caolan/nodeunit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support added to ignore code coverage using -ci option
eg:- nodeunit -ci tests/ package.json updated with dependencies
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ var args = process.ARGV.slice(2); | |
|
||
//global indicators for Code Coverage | ||
codeCoverage = {}; | ||
codeCoverage.paths = ['lib-cov']; | ||
|
||
var files = []; | ||
|
||
|
@@ -87,6 +88,9 @@ args.forEach(function (arg) { | |
codeCoverage.verbose = true; | ||
} else if(arg === '-cr') { | ||
codeCoverage.verbose = true; | ||
} else if(arg === '-ci') { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
arunoda
via email
Author
Owner
|
||
codeCoverage.ignored = true; | ||
codeCoverage.paths = ['lib']; | ||
} else { | ||
codeCoverage.enabled = true; | ||
setUpCodeCoverage(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rather then having a code coverage ignore option, can we just not enable code coverage by default?