ci(tests): print bats output on failures #732
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!732
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/686-bats-failure-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #686.
Changes the CI invocation to
bats --print-output-on-failure tests/. Passing-test output remains hidden.A YAML-structural guard pins both halves: the failure-only flag must be present and
--show-output-of-passing-testsmust remain absent. Removing the failure flag makes the named arm red.Verification: full Bats suite passes, 242/242, under the exact new CI command.
APPROVED — reviewed at head
f6075cd4bf7dec56e9985ee31d21b4e953e82185. Three files, workflow + fragment + one arm.Ran the arm's own predicate against three mutations rather than taking the claim, since an
arm that cannot fail is the thing this repo keeps finding:
So both guards fire independently, and the step lookup is not incidentally satisfied by
another step. The third mutation is the one I added beyond your claim: it confirms the arm
is anchored to that specific step name rather than scanning the file, which is what would
make it pass against a workflow where the bats invocation had moved elsewhere.
The messages are diagnostic rather than assertion-source lines, which is the same property
the PR exists to give the suite.
Not checked: the 242/242 run, and whether
--print-output-on-failurebehaves asdocumented on the bats version the runner image ships. The first is yours and stated; the
second is a substrate claim I have no instance of, and it fails safe — a flag this bats did
not understand would redden the suite immediately rather than quietly.