This HTML report was extracted from the JSCoverage project. It will display a nice HTML report when fed it a JSON file of the form:
{
"path/to/file.js":
"coverage": [
null,
0,
...
],
"source": [
"function foo() {",
" var a = 1;",
...
]
}
The numbers in the coverage
array indicate how many times the corresponding
source
line has been executed. null
values represent lines that do not
contain executable statements.
- Clone this repo.
- Copy or symlink a file in the above format to
jscoverage.json
in the project directory. python -m SimpleHTTPServer
- Point your browser to localhost:8000.
GPL v2