> For the complete documentation index, see [llms.txt](https://docs-v2.hypertest.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v2.hypertest.co/user-guides/node.js-sdk/code-coverage-based-features.md).

# 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
}
```
