Skip to content

int3/jscoverage-report

Repository files navigation

JSCoverage Report

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.

Usage

  1. Clone this repo.
  2. Copy or symlink a file in the above format to jscoverage.json in the project directory.
  3. python -m SimpleHTTPServer
  4. Point your browser to localhost:8000.

License

GPL v2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published