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.
Add nyc to your the command that starts your app. Follow this for help
Add
shouldExcludeUnmodifiedRequests
in cli config
// Your cli config
{
/*
...Rest of your cli config
*/
shouldExcludeUnmodifiedRequests: true
}
Run cli test
Last updated