Smart Test Runner
Repo anchors (autocodex)
- •TEST_COMMANDS
- •
go test ./... - •
go vet ./...
- •
When to use
- •Running tests after a change.
Preconditions
- •Code builds locally.
Inputs to confirm
- •Change scope and affected packages
Required artifacts
- •Commands run
- •Failures with file/line
- •Suggested next tests
Quick path
- •Run
go test ./...thengo vet ./....
Steps
- •Run relevant tests.
- •Capture failures with context.
- •Suggest next diagnostics.
Failure modes and responses
- •Flaky tests: record and retry once.
- •Missing test tools: stop and report.
Definition of done
- •Tests executed and results summarized.
Example (minimal)
- •Output: “go test ./... passed.”