bashunit
bashunit copied to clipboard
Add quiet / failures-only option
📚 Description
Display Only Failing Tests (Quiet Mode) // Idea from @akinomyoga
Goal: Suppress passed tests and show only failures to reduce output noise.
Steps:
- Introduce a CLI flag:
--failures-onlyor--quiet. - When enabled:
- Suppress all "✓ Passed" lines.
- Show only failures or summary.
- Optional: Show a final count of passed/failed/skipped.
Example:
bashunit --failures-only
🔖 Changes
- Added new CLI flag
-q|--failures-only|--quietto enable quiet mode - Documented usage of bashunit
--failures-onlyand its effect in the command-line guide - Updated
helpoutput to show the quiet mode option - Documented
BASHUNIT_FAILURES_ONLYenvironment variable in the configuration guide with an example - Implemented quiet mode logic via new env helpers, early return in
state::print_line, and display in verbose output
✅ To-do list
- [x] I updated the
CHANGELOG.mdto reflect the new feature or fix - [x] I updated the documentation to reflect the changes