# Only testing modified requests

This feature enables you to test only those requests that were modified in the new commits added. Hypertest considers a request to be modified when the code covered in that request gets modified. So this feature requires the code coverage of the requests to be updated using `htcli update-coverage` command. Requests not having code coverage are not tested.

1. Add nyc to your the command that starts your app. Follow [this](/user-guides/node.js-sdk/code-coverage-based-features/updating-test-coverage.md) for help
2. Add `shouldExcludeUnmodifiedRequests` in cli config

```json
// Your cli config
{
    /*
        ...Rest of your cli config
    */
    shouldExcludeUnmodifiedRequests: true
}
```

{% hint style="info" %}
We  don't need to know your master branch for this feature, we store the commitId while updating coverage. We use that to calculate git diff.
{% endhint %}

3. Run cli test


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v2.hypertest.co/user-guides/node.js-sdk/only-testing-modified-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
