You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): convert bare '!' assertions to count-based checks + hygiene guard (#303)
bats-core's ERR trap doesn't fire for negated commands, so mid-test
'! cmd' lines assert nothing. All 22 occurrences (6 files, every one a
negative grep) converted to the count-based form from PR #302:
! cmd | grep -q PAT -> [[ $(cmd | grep -c PAT) -eq 0 ]]
New tests/unit/test_bats_hygiene.bats forbids line-leading bare '!' in
any .bats file (RED against the prior tree with all 22 listed).
Mutation-verified one conversion per file (6/6 killed): docker-start
no-op guard, live-block set+e, gitignore template overwrite, default
--model absence (import unit + conversion-call integration), e2e
first-call --resume absence.
0 commit comments