Add docs for how to run specific integration test(s) to CONTRIBUTING.md

This commit is contained in:
Ryan Richard 2022-03-21 09:33:26 -07:00
parent f64779cba7
commit b1310877d8
1 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,11 @@ go build -o pinniped ./cmd/pinniped
ulimit -n 512 && source /tmp/integration-test-env && go test -v -count 1 -timeout 0 ./test/integration
```
To run specific integration tests, add the `-run` flag to the above command to specify a regexp for the test names.
Use a leading `/` on the regexp because the Pinniped integration tests are automatically nested under several parent tests
(see [integration/main_test.go](https://github.com/vmware-tanzu/pinniped/blob/main/test/integration/main_test.go)).
For example, to run an integration test called `TestE2E`, add `-run /TestE2E` to the command shown above.
1. After making production code changes, recompile, redeploy, and run tests again by repeating the same
commands described above. If there are only test code changes, then simply run the tests again.