> 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/running-post-test-deduplication.md).

# Running post test deduplication

Once you record tests, you can update their coverages. In this process, we store the coverage for each test in db. This stored coverage is then used to deduplicate tests. Tests with same coverage are deleted from db.

{% hint style="warning" %}
Make sure you go through the steps to add nyc to your project [here](/user-guides/node.js-sdk/code-coverage-based-features.md) before this.
{% endhint %}

Go through the steps to update coverage [here](/user-guides/node.js-sdk/code-coverage-based-features/updating-test-coverage.md). Then add the `--deduplicate` flag to `update-coverage` command.

Please complete the CLI token generation as mentioned [here](/user-guides/node.js-sdk/cli-login.md).

```bash
htcli update-coverage --deduplicate --config-file-path <path-to-your-cli-config>
```
