github TypedDevs/bashunit 0.30.0

one day ago

Better test output (human-readable duration, --failures-only, --no-color), multiple standalone assertions, and release automation. Breaking: --preserve-env renamed to --skip-env-file.

✨ Improvements

  • Display execution time in minutes format when tests run over 60 seconds (e.g., "2m 1s")
  • Display individual test duration in human-readable format (ms, s, or m s) instead of always milliseconds
  • Add --failures-only flag to suppress passed/skipped/incomplete tests and show only failures
  • Add --no-color flag to disable ANSI color output (also supports NO_COLOR env var per no-color.org standard)
  • Add multiple assertions support in standalone mode: bashunit assert "cmd" exit_code "1" contains "error"
  • Add release.sh script to automate the release process with dry-run support

🛠️ Changes

  • BREAKING: Rename --preserve-env flag to --skip-env-file for clearer semantics
  • BREAKING: Rename BASHUNIT_PRESERVE_ENV environment variable to BASHUNIT_SKIP_ENV_FILE
  • Improve documentation for --skip-env-file clarifying that shell functions are not inherited
  • Add tip to Bootstrap documentation promoting it as the solution for function availability in tests
  • Clarify that exit code assertions check $? instead of executing commands

🐛 Bug Fixes

  • Internal flaky tests when running --strict
  • Visible stdout/stderr during normal execution set_up_before_script and tear_down_after_script

👥 Contributors

@Chemaclass @JesusValeraDev

🔐 Checksum

1cdb44f844f8decf9943c2b8e18679b4497e3bd798ce4aa9605cfde3d357706f bin/bashunit

Full Changelog: 0.29.0...0.30.0

Don't miss a new bashunit release

NewReleases is sending notifications on new releases.