Code coverage based features

Prerequisite for these features, add nyc to your project.

  1. Install nyc

npm i nyc --save-dev
  1. create .nycrc in your project ( or .ht-nycrc if you already have one )

Hypertest needs json-summary reporter to store the coverage summary. Hypertest expects reports to be present in ht-coverage folder.

{
    "exclude":["node_modules", "htConfSample.js", "coverage", ".nyc_output", "ht-coverage"],
    "reporter": ["json-summary"],
    "report-dir": "ht-coverage",
    "cache": false
}

Last updated