Skip to content

v2.2 (?) pretty runner, severity banners, optional spec messages, and tearDown hook - #6

Merged
holmesjr merged 2 commits into
holmesjr:masterfrom
keithy:master
Oct 17, 2026
Merged

holmesjr merged 2 commits into
holmesjr:masterfrom
keithy:master

Conversation

@keithy

@keithy keithy commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Some improvements.

• Optional message on should_succeed / should_fail. A trailing string is now rendered into the **** FAIL line only on the unexpected outcome — pass lines stay clean.
• Explicit tearDown hook. Specs can now declare function tearDown { … } and bash-spec will run it on EXIT before output_results. This is to discourage an LLM from redeclaring the EXIT trap and getting confused when it doesn't work.
• Severity-prefixed echo support (OK:... INFO: …, WARN: …, ERROR: …). Pretty runner filters on these prefixes so suites can emit structured progress without leaking noise into the index.
• Pretty test runner. Adds _pretty_run_all.sh with ✔ ✘ icons, (n/m) counts, banner colouring and an index line per spec; the older _run_all.sh is remains for compatibility.
• Additional comments/test demonstrating glob matching (LLMs miss this capability and start implementing unhelpful helpers)

@keithy
keithy force-pushed the master branch 2 times, most recently from 0c6bf19 to d7c8e6d Compare October 16, 2026 16:38
…N/ERROR

Some example enhancements for LLM to undertand glob matching
[[ ... ]] "message about failure"
Explicit tearDown hook (LLMS always try and fail to set trap)
@holmesjr
holmesjr merged commit 0a5a440 into holmesjr:master Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants