Add docs for how to run specific integration test(s) to CONTRIBUTING.md
This commit is contained in:
parent
f64779cba7
commit
b1310877d8
@ -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
|
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
|
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.
|
commands described above. If there are only test code changes, then simply run the tests again.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user