# 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. Also installable with debian: sudo apt install bash-unit.

## Install

```sh
sudo av install brew:bash_unit
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bash_unit
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bash-unit
```

  Evidence: Debian stable package indexes: bash-unit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#bash_unit
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ba/bash_unit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:bash_unit
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bash_unit>
- **Version:** 2.3.3
- **Source summary:** Bash unit testing enterprise edition framework for professionals
- **Homepage:** <https://github.com/bash-unit/bash_unit>
- **Repository:** <https://github.com/bash-unit/bash_unit>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/bash-unit/bash_unit/archive/refs/tags/v2.3.3.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- bash_unit (cli)
- bash_unit (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.3.3
- Local data: ok
- Upstream repository: https://github.com/bash-unit/bash_unit
- Upstream latest detected: v2.3.3 (current)
- info: No package-manager update timestamp was available.
## 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 Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bash_unit
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - bash-unit - 2.3.2-1: normalized package name match | Debian stable package indexes: bash-unit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | bash_unit - bash unit testing | https://github.com/pgrange/bash_unit
- Nix - bash_unit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bash_unit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bashunit](https://pkg.so/brew/bashunit/) - Shares pkgdb curated category or tags: bash, cli, developer-tools, testing, unit-testing.
- [bats-core](https://pkg.so/brew/bats-core/) - Shares pkgdb curated category or tags: bash, cli, developer-tools, testing.
- [pytest](https://pkg.so/brew/pytest/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [phpunit](https://pkg.so/brew/phpunit/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [busted](https://pkg.so/brew/busted/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [lcov](https://pkg.so/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [allure](https://pkg.so/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [kcov](https://pkg.so/brew/kcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [cutter-cli](https://pkg.so/brew/cutter-cli/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, framework, testing.
- [cxxtest](https://pkg.so/brew/cxxtest/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, framework, testing.
- [shunit2](https://pkg.so/brew/shunit2/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, framework, testing.

## Combined YAML source

View the package source record on GitHub. [combined/bash_unit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bash_unit.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
