Release 0.30.0
🔧 New features
Failures-only mode
Focus on what matters with --failures-only, which suppresses passed, skipped, and incomplete tests:
bash
bashunit --failures-only tests/No-color output
Disable ANSI colors for cleaner logs in CI environments:
bash
bashunit --no-color tests/bash
NO_COLOR=1 bashunit tests/Human-readable test duration
Test durations are now displayed in a more readable format:
✓ Passed: Fast test 12 ms
✓ Passed: Medium test 1.5 s
✓ Passed: Slow test 2m 15sExecution time is shown in minutes when tests run over 60 seconds (e.g., "2m 1s").
Multiple assertions in standalone mode
Chain multiple assertions in a single command:
bash
bashunit assert "my_command" exit_code "0" contains "success"🐛 Bug fixes
- Suppress stdout/stderr during
set_up_before_scriptandtear_down_after_script(visible in verbose mode) - Prevent
.envoverride in strict mode tests - Fixed internal flaky tests when running
--strict
🌾 Miscellaneous
- Breaking change:
--preserve-envrenamed to--skip-env-filefor clearer semantics - Breaking change:
BASHUNIT_PRESERVE_ENVrenamed toBASHUNIT_SKIP_ENV_FILE - Added
release.shscript to automate the release process
See the full changelog on GitHub