Agent Sandbox
Running and debugging tests
Running and debugging tests
make deploy-kind
Running unit tests
To run all unit tests:
make test-unit
Go unit tests also write coverage profiles (coverage_unit-go*.out) next to
the JUnit files in $ARTIFACTS, or bin/ locally. View one with:
go tool cover -html=bin/coverage_unit-go.out
Running the e2e tests (including benchmarks)
To run all e2e tests:
make test-e2e
Running only e2e benchmarks
To run only e2e benchmarks:
make test-e2e-benchmarks
Running Tests with Race Detector
Go unit tests run with Go’s race detector (-race) enabled.
E2e tests do not run with -race by default, since the race detector significantly increases memory usage (5-10×) and execution time (2-20×), which would slow down PR presubmits.
To run e2e tests with race detection:
make test-e2e-race
Remove the kind cluster
make delete-kind