github TypedDevs/bashunit 0.37.0

4 hours ago

✨ Improvements

  • --profile reports the slowest tests (BASHUNIT_PROFILE_COUNT, default 10) (#678)
  • Readable snapshot diff when git is unavailable (#679)
  • Failure output shows the test file:line (#680)
  • .bashunitrc project config file (#681)
  • Killed tests report the cause: timeout, SIGINT, SIGKILL/OOM, SIGTERM (#683)

🐛 Bug Fixes

  • --strict skips Bash 3.0's broken pipefail (pipefail only on Bash >= 3.1)
  • bashunit watch forwards --filter and other flags correctly (#682)
  • learn and coverage use mktemp -d for temp directories
  • parallel::cleanup refuses to rm -rf outside */bashunit/parallel/*

Internal

  • Global-slot return pattern for hot-path helpers; _BASHUNIT_SPY_* namespace (#674)
  • Windows acceptance CI: matrix shards now cover every test file (bashunit_test.sh, coverage_*, install, mock were silently skipped) and job labels show only the shard name

⚡ Performance

  • Faster runtime-error detection: single case glob (#668)
  • Cache coverage-enabled flag in hot path (#664)
  • Parallel runner uses wait -n on Bash 4.3+ instead of polling (#667)
  • Hot-path result helpers return via global slots, dropping a fork per call (#662)
  • Drop grep/random_str forks in generate_id and normalize_variable_name (#663)

👥 Contributors

Checksum

SHA256: 18f1e8354213001b80e37c722b8520ebe26ce10fce11cb20ee471ddc96a21b11

Full Changelog: 0.36.0...0.37.0

Don't miss a new bashunit release

NewReleases is sending notifications on new releases.