-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Coe
committed
May 10, 2015
1 parent
beb31e1
commit 6c3f8a6
Showing
7 changed files
with
39 additions
and
88 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
nyc_output | ||
coverage |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# nyc | ||
|
||
forking code-coverage using istanbul. | ||
a code coverage reporter built on [istanbul](https://www.npmjs.com/package/istanbul) | ||
that works well for applications that spawn child processes. |
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 |
---|---|---|
@@ -1,8 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
process.env.NYC_CWD = process.cwd() | ||
|
||
var NYC = require('../'), | ||
nyc = new NYC() | ||
argv = require('yargs') | ||
.usage('$0 [options]') | ||
.option('d', { | ||
alias: 'cwd', | ||
default: process.cwd(), | ||
describe: 'root directory that contains the nyc_output folder' | ||
}) | ||
.option('r', { | ||
alias: 'reporter', | ||
describe: 'coverage reporter to use', | ||
default: 'text' | ||
}) | ||
.help('h') | ||
.alias('h', 'help') | ||
.epilog('github.com/gotwarlost/istanbul for available reporters') | ||
.argv | ||
|
||
process.env.NYC_CWD = argv['cwd'] | ||
|
||
nyc.report() | ||
;(new NYC({ | ||
reporter: argv.reporter | ||
})).report() |
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
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