macOS
brew install bashunitlocal Homebrew formula metadata
sudo port install bashunitMacPorts ports tree · devel/bashunit/Portfile · source: api.github.com
brew
Simple testing library for bash scripts. Version 0.40.0 via Homebrew; verified 2026-06-16.
install
brew install bashunitlocal Homebrew formula metadata
sudo port install bashunitMacPorts ports tree · devel/bashunit/Portfile · source: api.github.com
nix profile install nixpkgs#bashunitnixpkgs package indexes · pkgs/by-name/ba/bashunit/package.nix · source: api.github.com
overview
Simple testing library for bash scripts
history
bashunit is a modern Bash testing framework by TypedDevs. Its README describes it as a lightweight, fast framework for Bash 3.0+ with assertions, spies, mocks, data providers, snapshots, and other developer-experience features.
The project began publicly with version 0.1.0 on 2023-09-04, according to its official CHANGELOG. It developed rapidly through 2023 and 2024, adding documentation, examples, new assertions, configuration, snapshots, data providers, output formats, and CI-oriented reporting.
By late 2025 and 2026, bashunit had expanded beyond basic assertions into coverage, profiling, watch mode, parallel execution improvements, TAP/JUnit/GitHub Actions reporting, checksum-verified installer behavior, and an official composite GitHub Action.
The project is distributed as a project-local installer from bashunit.com, an npm package, a Homebrew formula, and package-manager entries in MacPorts and Nix according to the supplied package facts. The docs site metadata identifies the current public site as bashunit.com and lists v0.40.0 on 2026-06-16.
bashunit's adoption story is tied to shell-heavy repositories wanting tests without moving logic into another language. The README explicitly frames it as a fast, simple way to test Bash scripts and includes a one-file quickstart.
The README quickstart installs the runner into a project with `curl -s https://bashunit.com/install.sh | bash`, writes test functions in shell files under `tests/`, and runs them with `./lib/bashunit tests/`.
The official docs describe configuration through `.env` and, since 0.37.0, `.bashunitrc`. Recent releases add workflow-friendly features such as JUnit, TAP, GitHub Actions annotations, coverage reports, test timeouts, and a composite GitHub Action.
bashunit matters to package nerds because it is part of the small ecosystem that tests shell as shell. It keeps the runtime requirement low, uses Bash 3.0+ for broad compatibility, and packages itself for project-local use, npm, Homebrew, MacPorts, and Nix.
Its changelog is also an example of a modern CLI project optimizing for CI ergonomics: pinned GitHub Actions, checksum verification, inline annotations, coverage formats, and failure output tuned for automated logs.
security posture
No matching local secret-handling manifest was found for bashunit. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.env./.bashunitrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bashunit | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/TypedDevs/bashunit
install metadata
| Package key | brew:bashunit |
|---|---|
| Version | 0.40.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bashunit |
| Homepage | https://bashunit.typeddevs.com |
| Repository | https://github.com/TypedDevs/bashunit |
| Upstream docs | https://bashunit.com/ |
| License | MIT |
| Source archive | https://github.com/TypedDevs/bashunit/releases/download/0.40.0/bashunit |
| Last updated | 2026-06-16T22:24:04Z |
| Pulse | updated |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bashunit |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
bashunit
nix profile install nixpkgs#bashunitbashunit
sudo port install bashunitsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.