github TypedDevs/bashunit 0.36.0

7 hours ago

🐛 Bug Fixes

  • bashunit upgrade exits non-zero with a clear error when the download fails (no more false success message)

✨ Improvements

  • --show-output displays captured test output on assertion failures (#637)
  • npm registry distribution: npm install -g bashunit (#244)
  • bashunit::env::supports_color and bashunit::io::clear_screen helpers (#247)
  • LCOV reports now include FN, FNDA, FNF and FNH function records, consumed by genhtml, Codecov and Coveralls
  • LCOV reports now include BRDA, BRF and BRH branch records for if/elif/else chains and case patterns (see adrs/adr-007-branch-coverage-mvp.md)
  • BASHUNIT_COVERAGE_SHOW_FUNCTIONS=true adds a per-function coverage block to the text report
  • BASHUNIT_COVERAGE_SHOW_UNCOVERED=true adds an "Uncovered Lines" block to the text report, with consecutive line numbers compressed into ranges

🛠️ Changes

  • Docs moved into their own npm workspace under docs/ (use cd docs && npm ci or make docs/install)
  • Pre-commit hook skips the test suite when no shell files are staged
  • ANSI escapes route through _BASHUNIT_COLOR_* constants (#247)

⚡ Performance

  • Faster coverage report generation: single-pass file scan, native bash regex, cached file stats (#636)

Internal

  • bashunit::runner::run_test split into nine named helpers (no behavior change)
  • release.sh handles docs/package.json as a first-class release file
  • Structural test guards root package.json against regaining dependencies or scripts

👥 Contributors

@Chemaclass

Checksum

SHA256: 29bffc3d492296c859640f7425a66f7ae0549e667e5265e3e84859a828edbf64

Full Changelog: 0.35.0...0.36.0

Don't miss a new bashunit release

NewReleases is sending notifications on new releases.