# 使用 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
- **版本:** 2.3.0
- **来源摘要:** Elegant Lua unit testing
- **主页:** <https://lunarmodules.github.io/busted/>
- **仓库:** <https://github.com/lunarmodules/busted>
- **最后更新:** 2026-06-22T14:02:56-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- busted (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.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
## 其他软件包管理器记录

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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
