# 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

```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>
- **Upstream docs:** <https://github.com/bash-unit/bash_unit#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/bash-unit/bash_unit/archive/refs/tags/v2.3.3.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- bash_unit (cli)
- bash_unit (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- 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://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bashunit](https://www.automicvault.com/pkg/brew/bashunit/) - Shares av.db curated category or tags: bash, cli, developer-tools, testing.
- [bats-core](https://www.automicvault.com/pkg/brew/bats-core/) - Shares av.db curated category or tags: bash, cli, developer-tools, testing.
- [adb-enhanced](https://www.automicvault.com/pkg/brew/adb-enhanced/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [atf](https://www.automicvault.com/pkg/brew/atf/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [autobench](https://www.automicvault.com/pkg/brew/autobench/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [autocannon](https://www.automicvault.com/pkg/brew/autocannon/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bash-language-server](https://www.automicvault.com/pkg/brew/bash-language-server/) - Package names and metadata indicate a similar tool family. Shared terms: bash, cli, developer, developer-tools.
- [bash-language-server](https://www.automicvault.com/pkg/npm/bash-language-server/) - Local package facts share a topical domain. Shared terms: bash, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bash_unit.yml](https://github.com/automic-vault/db/blob/main/combined/bash_unit.yml)


## Sources

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