Skip to content

Commit 94b1e83

Browse files
committed
docs: update readme
1 parent b86bddd commit 94b1e83

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2222
acceptance 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

2631
Run `make lint` to check for linting issues, and `make lint-fix` to fix linting

acceptance/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uses the established Go test to launch Godog.
1414

1515
To run the acceptance tests either run:
1616

17-
$ make acceptance
17+
$ E2E_INSTRUMENTATION=true make acceptance
1818

1919
from the root of the repository.
2020

@@ -64,7 +64,7 @@ Docker website how to accomplish that.
6464
## Debugging
6565

6666
The 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

6969
To use a debugger, like [delve](https://github.com/go-delve/delve), you must
7070
determine what part of the code is being debugged. If it's part of the

hack/macos/TROUBLESHOOTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
108108
cd acceptance

hack/macos/setup-podman-machine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)