# Code coverage based features

Prerequisite for these features, add nyc to your project.

1. Install nyc

```bash
npm i nyc --save-dev
```

2. 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.

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