Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 bashunit

查看 bashunit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bashunit

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bashunit

MacPorts ports tree · devel/bashunit/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#bashunit

nixpkgs package indexes · pkgs/by-name/ba/bashunit/package.nix · 来源: api.github.com

概览

软件包摘要

Simple testing library for bash scripts

命令和别名

  • bashunit

历史

项目历史与用法

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.

时间线

  • 2023-09-04: Version 0.1.0 appears in the official CHANGELOG.
  • 2023-10-15: Version 0.9.0 adds early blog/docs-era features.
  • 2024-07-14: Version 0.14.0 continues the pre-1.0 feature cadence.
  • 2025-12-19: Version 0.31.0 adds code coverage tracking.
  • 2026-02-15: Version 0.33.0 lowers the minimum Bash version to 3.0 and improves parallel execution.
  • 2026-06-07: Version 0.38.0 adds the official `TypedDevs/bashunit` GitHub Action.
  • 2026-06-16: Version 0.40.0 adds per-test timeouts and moves URLs to bashunit.com.

Related projects

  • The project includes its own installer, npm distribution, docs site, and official GitHub Action. It is adjacent to other shell test runners, but the official sources emphasize bashunit's own Bash 3.0+ compatibility and CI/reporting features.

安全态势

尚未找到受保护工具覆盖

没有找到 bashunit 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.env./.bashunitrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bashunitcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.43.0
管理器更新时间2026-07-24
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/TypedDevs/bashunit

安装元数据

软件包元数据

软件包键brew:bashunit
版本0.43.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bashunit
主页https://bashunit.typeddevs.com
仓库https://github.com/TypedDevs/bashunit
上游文档https://bashunit.com/
许可证MIT
源码归档https://github.com/TypedDevs/bashunit/releases/download/0.43.0/bashunit
最后更新2026-07-24T10:08:47Z
Pulseupdated
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

bashunit

nix profile install nixpkgs#bashunit
  • normalized package name match
  • 匹配方式:Bashunit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bashunit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

bashunit

sudo port install bashunit
  • normalized package name match
  • 匹配方式:Bashunit
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/bashunit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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