Only testing modified requests

How to only test 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 for help

  2. Add shouldExcludeUnmodifiedRequests in cli config

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

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.

  1. Run cli test

Last updated