File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ run `make dist` to build for all supported architectures.
1818
1919## Testing
2020
21- Run ` make test ` to run the unit tests, and ` make acceptance ` to run the
21+ Run ` make test ` to run the unit tests, and ` E2E_INSTRUMENTATION=true make acceptance` to run the
2222acceptance tests.
2323
24+ The purpose of the ` E2E_INSTRUMENTATION=true ` environment variable is to pass
25+ extra flags to the build command. This instruments the resulting binary,
26+ allowing for the collection of coverage data during the acceptance test run.
27+ (more information here: https://go.dev/doc/build-cover ).
28+
2429## Linting
2530
2631Run ` make lint ` to check for linting issues, and ` make lint-fix ` to fix linting
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ uses the established Go test to launch Godog.
1414
1515To run the acceptance tests either run:
1616
17- $ make acceptance
17+ $ E2E_INSTRUMENTATION=true make acceptance
1818
1919from the root of the repository.
2020
@@ -64,7 +64,7 @@ Docker website how to accomplish that.
6464## Debugging
6565
6666The acceptance tests execute the ` ec ` binary during test execution. (For this
67- reason ` make acceptance ` builds the binary prior to running the tests.)
67+ reason ` E2E_INSTRUMENTATION=true make acceptance` builds the binary prior to running the tests.)
6868
6969To use a debugger, like [ delve] ( https://github.com/go-delve/delve ) , you must
7070determine what part of the code is being debugged. If it's part of the
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ podman machine start
102102
103103``` bash
104104# Run all acceptance tests
105- make acceptance
105+ E2E_INSTRUMENTATION=true make acceptance
106106
107107# Or run tests directly
108108cd acceptance
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ main() {
305305 echo
306306 echo " To run acceptance tests:"
307307 echo " 1. Source the environment: source setup-test-env.sh"
308- echo " 2. Run tests: make acceptance"
308+ echo " 2. Run tests: E2E_INSTRUMENTATION=true make acceptance"
309309 echo " or: cd acceptance && go test -v ./..."
310310 echo
311311 echo " Environment variables are saved in: setup-test-env.sh"
You can’t perform that action at this time.
0 commit comments