# 使用 Homebrew, pacman 安装 busted

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

## 安装

```sh
sudo av install brew:busted
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install busted
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S busted
```

  证据: Arch Linux sync databases: busted from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:busted
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/busted>
- **版本:** 2.3.0
- **来源摘要:** Elegant Lua unit testing
- **主页:** <https://lunarmodules.github.io/busted/>
- **仓库:** <https://github.com/lunarmodules/busted>
- **上游文档:** <https://lunarmodules.github.io/busted/>
- **许可证:** MIT
- **源码归档:** <https://github.com/lunarmodules/busted/archive/refs/tags/v2.3.0.tar.gz>
- **最后更新:** 2026-06-22T14:02:56-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- busted (cli)
- busted (别名)

## 依赖

- lua

## 构建依赖

- luarocks

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/lunarmodules/busted
- 检测到的最新版本: v2.3.0 (当前)
## 项目历史与用法

busted is a Lua unit testing framework with a behavior/spec style, expressive assertions, spies, mocks, multiple output formats, and LuaRocks-first distribution. It is one of the familiar testing tools in the Lua and LuaJIT package ecosystem.

### 项目历史

The current repository was created in August 2012, and the project documentation and license history show its Olivine Labs origin before the repository later lived under LunarModules. The README describes a framework focused on easy-to-read specs, nested `describe` and `it` blocks, chainable assertions, tags, mocks, spies, and support for Lua 5.1+, LuaJIT, and MoonScript.

The official docs list version 2.1.1 and present busted as both a command-line runner and a library of testing conventions. The rockspec documents its LuaRocks packaging, MIT license, CLI installation, and dependencies including luassert, say, lua_cliargs, Penlight, dkjson, and related Lua modules.

### 采用历史

busted's adoption comes from being the natural test runner for many LuaRocks projects and from easy invocation in CI. The input metadata records Homebrew and Arch packaging, while the upstream README documents LuaRocks installation, Docker usage, and a GitHub Action for running busted in workflows.

### 使用方式

Typical usage is to write Lua specs with `describe` and `it`, use `assert` helpers from luassert, optionally add mocks or spies, then run the `busted` CLI over a file or test directory. Output handlers include terminal, JSON, TAP, JUnit, and other CI-friendly formats.

### 为什么软件包爱好者会关心

busted is significant because it helped give Lua projects a conventional, packageable test workflow comparable to RSpec, Jasmine, or Mocha in other ecosystems. For package maintainers, it is also the test command that turns many Lua modules from 'installs successfully' into 'can actually be verified during packaging'.

### 时间线

- 2012: Public repository created; copyright history begins with Olivine Labs.
- 2010s: busted became established as a LuaRocks-distributed Lua testing framework.
- 2020: README copyright range still referenced Olivine Labs before later LunarModules stewardship.
- 2026: The LunarModules repository and docs remain active, with Homebrew and Arch package metadata present in the input.

### Related projects

- busted is closely related to Lua, LuaJIT, LuaRocks, luassert, say, lua_cliargs, Penlight, MoonScript, luacov, TAP/JUnit output consumers, and spec-style test frameworks such as RSpec, Jasmine, and Mocha.

### 来源

- <https://github.com/lunarmodules/busted>
- <https://lunarmodules.github.io/busted>
- <https://raw.githubusercontent.com/lunarmodules/busted/master/README.md>
- <https://raw.githubusercontent.com/lunarmodules/busted/master/busted-scm-1.rockspec>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: .busted
## 源数据库详情

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

## 其他软件包管理器记录

- pacman - busted - 2.3.0-3: normalized package name match | Arch Linux sync databases: busted from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Elegant Lua unit testing (CLI) | https://lunarmodules.github.io/busted/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Runtime dependency declared by Homebrew.
- [luarocks](https://pkg.so/zh-hans/brew/luarocks/) - Build dependency declared by Homebrew.
- [pytest](https://pkg.so/zh-hans/brew/pytest/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [phpunit](https://pkg.so/zh-hans/brew/phpunit/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [bashunit](https://pkg.so/zh-hans/brew/bashunit/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [bash_unit](https://pkg.so/zh-hans/brew/bash-unit/) - Shares pkgdb curated category or tags: cli, developer-tools, testing, unit-testing.
- [lcov](https://pkg.so/zh-hans/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [bats-core](https://pkg.so/zh-hans/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [allure](https://pkg.so/zh-hans/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [kcov](https://pkg.so/zh-hans/brew/kcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [kyua](https://pkg.so/zh-hans/brew/kyua/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, lua, testing.

## Combined YAML source

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


## 来源

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