Automic VaultAutomic Vault

brew

Install bash_unit with Homebrew, apt, Nix

Bash unit testing enterprise edition framework for professionals. Version 2.3.3 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install bash_unit

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install bash-unit

Debian stable package indexes · bash-unit · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#bash_unit

nixpkgs package indexes · pkgs/by-name/ba/bash_unit/package.nix · source: api.github.com

overview

Package summary

Bash unit testing enterprise edition framework for professionals

Commands and aliases

  • bash_unit

history

Project history and usage

bash_unit is a Bash unit-testing framework. It is intentionally small: an installable shell test runner for projects that want assertions and test discovery without leaving Bash.

Project history

The official executable identifies itself as a Bash unit testing framework and carries Pascal Grange copyright years 2011-2016. Its source points to the official `bash-unit/bash_unit` repository and currently declares version v2.3.3.

The repository tag list starts at v0.0.1 and progresses through v1.x and v2.x releases, showing a long-maintained single-purpose shell testing tool rather than a recent wrapper around a larger framework.

Adoption history

bash_unit adoption is concentrated among shell-script projects that want tests but do not need Bats or a cross-language test framework. The batch input shows Homebrew, Debian, and Nix packages, which is enough distribution coverage to make it a repeatable dependency in developer workstations and CI images.

How it is used

Users write Bash test functions and run them with the `bash_unit` executable. The tool provides assertions, colored reporting, failure output, and a small runtime that remains close to plain shell code.

Why package nerds care

bash_unit matters mostly as part of the Bash testing ecosystem. Package nerds care because shell code is everywhere, but many shell projects historically had little test structure; a small packaged runner lowers the friction without introducing a language runtime beyond Bash itself.

It also sits in the interesting overlap between package infrastructure and package contents: many packages are built by shell scripts, and tools like bash_unit help test that glue code.

Timeline

  • 2011: Copyright header begins for bash_unit's main executable.
  • 2010s: Tag series begins at v0.0.1 and reaches v1.x.
  • 2020s: v2.x release series continues through v2.3.3.
  • 2020s: Homebrew, Debian, and Nix package the runner.

Related projects

  • Related Bash and shell test tools include Bats, shunit2, ShellSpec, ShellCheck, and shfmt. bash_unit occupies the minimal unit-test-runner lane among those tools.

Sources

  • Official `bash_unit` executable identifies the framework, copyright years 2011-2016, repository URL, and version v2.3.3.
  • Official tags list shows v0.0.1 through v2.3.3 release tags.
  • input.source_facts.package-manager lists Homebrew, Debian, and Nix packaging.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
bash_unitcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.3.3
manager updated
local dataok
upstreamcurrent
latest detectedv2.3.3

https://github.com/bash-unit/bash_unit

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:bash_unit
Version2.3.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/bash_unit
Homepagehttps://github.com/bash-unit/bash_unit
Repositoryhttps://github.com/bash-unit/bash_unit
Upstream docshttps://github.com/bash-unit/bash_unit#readme
LicenseGPL-3.0-only
Source archivehttps://github.com/bash-unit/bash_unit/archive/refs/tags/v2.3.3.tar.gz
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebash_unit
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

bash-unit 2.3.2-1

bash_unit - bash unit testing

https://github.com/pgrange/bash_unit

sudo apt install bash-unit
  • Section: devel
  • Architecture: all
  • normalized package name match
  • Matched by: Bash Unit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bash-unit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bash_unit

nix profile install nixpkgs#bash_unit
  • normalized package name match
  • Matched by: Bash Unit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bash_unit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment