Skip to content

Commit 5b6f046

Browse files
committed
docs: update ADR to reflect completed test coverage backfill
1 parent 0a1f20e commit 5b6f046

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/adr/20260319-differentiated-exit-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $ ./kosli list environments --bogus-flag # exit 4
148148

149149
### Remaining work — test coverage
150150

151-
Only 11 `wantExitCode` annotations exist across ~134 error test cases. The test infrastructure (`wantExitCode` field in `cmdTestCase`, assertion in `runTestCmd`) is in place and working, but most existing command tests haven't been updated yet. Missing from: `assertArtifact_test.go`, `assertApproval_test.go`, all `assertPR*_test.go`, all `attestPR*_test.go`, `attestJira_test.go`, `evaluateTrails_test.go`.
151+
55 `wantExitCode` annotations now exist across 14 test files, covering all assert, attest `--assert`, and evaluate command families with compliance failure (exit 1), usage error (exit 4), and success regression guard (exit 0) cases.
152152

153153
No end-to-end test verifies the actual compiled binary's process exit code. The current tests validate error classification logic in isolation.
154154

0 commit comments

Comments
 (0)