macOS
brew install bash_unitlocal Homebrew formula metadata
安装
brew install bash_unitlocal Homebrew formula metadata
sudo apt install bash-unitDebian stable package indexes · bash-unit · 来源: deb.debian.org
nix profile install nixpkgs#bash_unitnixpkgs package indexes · pkgs/by-name/ba/bash_unit/package.nix · 来源: api.github.com
概览
Bash unit testing enterprise edition framework for professionals
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bash_unit | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/bash-unit/bash_unit
安装元数据
| 软件包键 | brew:bash_unit |
|---|---|
| 版本 | 2.3.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bash_unit |
| 主页 | https://github.com/bash-unit/bash_unit |
| 仓库 | https://github.com/bash-unit/bash_unit |
| 上游文档 | https://github.com/bash-unit/bash_unit#readme |
| 许可证 | GPL-3.0-only |
| 源码归档 | https://github.com/bash-unit/bash_unit/archive/refs/tags/v2.3.3.tar.gz |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
bash-unit 2.3.2-1
bash_unit - bash unit testing
https://github.com/pgrange/bash_unit
sudo apt install bash-unitbash_unit
nix profile install nixpkgs#bash_unit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.