Skip to content

Commit a44ee69

Browse files
JerrySievertindexzero
authored andcommitted
Edited README.md via GitHub
1 parent a781c45 commit a44ee69

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@ synopsis
2727
}
2828
});
2929

30+
coverage reporting
31+
------------------
32+
Code coverage reporting is available if _instrumented_ code is detected. Currently only _instrumentation_ via [node-jscoverage](https://github.com/visionmedia/node-jscoverage) is supported. When _instrumented_ code is detected and coverage reporting is enabled using any of the `--cover-plain`, `--cover-html`, or `--cover-json` options a code coverage map is generated.
33+
34+
### downloading and installing [node-jscoverage](https://github.com/visionmedia/node-jscoverage)
35+
[node-jscoverage](https://github.com/visionmedia/node-jscoverage) is a binary package that needs to be compiled from source:
36+
37+
$ git clone https://github.com/visionmedia/node-jscoverage.git
38+
$ cd node-jscoverage/
39+
$ ./configure
40+
checking for a BSD-compatible install... /usr/bin/install -c
41+
checking whether build environment is sane... yes
42+
[...]
43+
$ make && sudo make install
44+
45+
### instrumenting with jscoverage
46+
47+
$ jscoverage myfile.js myfile-instrumented.js
48+
3049
installation
3150
------------
3251

0 commit comments

Comments
 (0)