github TypedDevs/bashunit 0.27.0

2 hours ago

Added a fully interactive learning mode, expanded documentation with practical examples, fixed argument handling in mocks and lifecycle hook behavior, simplified CI runners, and delivered several performance optimizations for faster and more reliable execution.

✨ Improvements

  • Added --learn interactive tutorial featuring 10 progressive lessons for guided, hands-on Bash testing practice
  • Added Common Patterns documentation with real-world examples for structuring tests, using hooks, and organizing suites

🐛 Bug Fixes

  • Fixed mocked functions so they properly receive passed arguments
  • Fixed lifecycle hooks to correctly capture intermediate failing commands inside set_up and tear_down

🛠️ Changes

  • Simplified CI matrix:
    • Use only *-latest runners for Ubuntu and macOS
    • Removed deprecated macos-13 runner

⚡ Performance

  • Optimized temporary directory handling by initializing it once at startup instead of per temp file
  • Replaced tail subprocesses with native Bash redirection for parallel result aggregation
  • Cached internal state values to avoid repeated subshell calls, improving overall responsiveness

👥 Contributors

@Chemaclass @JesusValeraDev

🔐 Checksum

b9362d720a46eb600d42ba18e6944521822ca397d1eaa1d0240fca8ce3fb859d bin/bashunit

Full Changelog: 0.26.0...0.27.0

Don't miss a new bashunit release

NewReleases is sending notifications on new releases.