Development record
The cli package's TestMain (internal/surface/cli/main_test.go) re-enters the abcd binary whenever ABCD_CLI_TEST_AS_BINARY=1 is in the environment, whatever the arguments, so an ambient marker makes go test of the package run zero tests, print the bare status board and pass. Test-only; the shipped binary carries no such symbol.
issueresolvedminoriss-2609251902439148
The cli package's TestMain (internal/surface/cli/main_test.go) re-enters the abcd binary whenever ABCD_CLI_TEST_AS_BINARY=1 is in the environment, whatever the arguments, so an ambient marker makes go test of the package run zero tests, print the bare status board and pass. Test-only; the shipped binary carries no such symbol.
Grounds
- pursued: a compiled cli test binary run with the marker and -test.run runs the named test; one that prints the status board and exits 0 would show it wrong
Frontmatter
| id | iss-2609251902439148 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609251902439148-the-cli-package-s-testmain-internal.md
open on GitHub ↗ · commit history ↗