bashunit
« Back to VersTracker
Description:
Simple testing library for bash scripts
Type: Formula  |  Latest Version: 0.30.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  @typeddevs  |  formulae.brew.sh
Category: Developer tools
Tags: testing bash shell dev-tools testing-framework
Install: brew install bashunit
About:
bashunit is a lightweight, dependency-free testing framework specifically designed for Bash scripts. It provides a familiar, xUnit-style API with assertions, test doubles, and comprehensive reporting. The tool enables developers to write robust tests for shell scripts and automation pipelines without external dependencies.
Key Features:
  • Zero-dependency and portable (pure Bash)
  • xUnit-style assertions and test syntax
  • Mocking and test doubles support
  • Detailed test reports and coverage metrics
  • GitHub Actions integration
Use Cases:
  • Unit testing Bash scripts and shell functions
  • Validating CI/CD pipeline logic and automation
  • Testing Docker entrypoint scripts and system utilities
Alternatives:
  • shunit2 – More mature but older syntax; bashunit offers modern API and better DX
  • bats – Bash Automated Testing System; requires Bats core, more complex setup
Version History
Detected Version Rev Change Commit
Dec 8, 2025 11:14pm 0 VERSION_BUMP e5f232e6
Nov 2, 2025 10:51pm 0 VERSION_BUMP ecce6260
Sep 14, 2025 5:07pm 0 VERSION_BUMP 9f56c566
Sep 14, 2025 4:51pm 0 VERSION_BUMP a99311b6
Oct 1, 2024 4:49pm 0 VERSION_BUMP 309fe7b2
Oct 1, 2024 3:03pm 0 VERSION_BUMP 968f6155