# 使用 Homebrew, apt, dnf, Nix 安装 cxxtest

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

## 安装

```sh
sudo av install brew:cxxtest
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cxxtest
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cxxtest
```

  证据: Debian stable package indexes: cxxtest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cxxtest
```

  证据: Fedora Rawhide package metadata: cxxtest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cxxtest
```

  证据: nixpkgs package indexes: pkgs/by-name/cx/cxxtest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cxxtest
- **软件包管理器:** Homebrew
- **版本:** 4.4
- **来源摘要:** C++ unit testing framework similar to JUnit, CppUnit and xUnit
- **主页:** <https://github.com/CxxTest/cxxtest>
- **仓库:** <https://github.com/CxxTest/cxxtest>
- **最后更新:** 2026-06-28T01:06:15-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cxxtestgen (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.4
## 项目历史与用法

CxxTest is a C++ unit testing framework in the xUnit family, positioned by its README as similar in spirit to JUnit, CppUnit, and xUnit while avoiding a precompiled testing library.

### 项目历史

The project's own release log records CxxTest releases back to 2002, with version 2.7.0 adding embedded test suites and version 2.8.0 beginning the maintained version history in early 2003. Through the 3.x line it accumulated portability work for compilers and GUI runners, then version 4.0 in 2011 moved the scripting side from Perl to Python and refreshed the installation and user guide.

### 采用历史

CxxTest's adoption niche has been C++ projects that wanted generated test runners and xUnit-style assertions without forcing a separate library build or advanced C++ features. Its package-manager presence across Homebrew, Debian, Fedora, Nix, and Ubuntu reflects a mature testing utility kept available for existing C++ build workflows.

### 使用方式

Typical use starts with a header declaring a CxxTest::TestSuite, then runs cxxtestgen to generate a C++ test runner that is compiled with the user's normal compiler. That generator-centric flow made it friendly to Make, SCons, and distribution packaging because the installed executable is the key tool.

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

For package maintainers, CxxTest is a compact example of an older C++ test framework whose packaging value is mostly in a generator script, headers, documentation, and compatibility with many C++ compilers rather than a runtime library.

### 时间线

- 2002: Version 2.7.0 released with embedded test suites.
- 2003: Version 2.8.0 started the recorded version history.
- 2011: Version 4.0 replaced Perl scripting with Python and introduced a refreshed user guide.
- 2014: Version 4.4 shipped Windows, SCons, and formatter fixes.

### Related projects

- CxxTest presents itself alongside JUnit, CppUnit, and xUnit-style testing frameworks.

### 来源

- <https://github.com/CxxTest/cxxtest/blob/master/README>
- <https://github.com/CxxTest/cxxtest/blob/master/Versions>
- <https://api.github.com/repos/CxxTest/cxxtest>
- <https://formulae.brew.sh/formula/cxxtest>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - cxxtest - 4.4+git171022-2: normalized package name match | Debian stable package indexes: cxxtest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight xUnit-like framework for C/C++ applications | https://cxxtest.com/
- Nix - cxxtest: normalized package name match | nixpkgs package indexes: pkgs/by-name/cx/cxxtest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cxxtest - 4.4+git171022-2: normalized package name match | Ubuntu 24.04 LTS package indexes: cxxtest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight xUnit-like framework for C/C++ applications | https://cxxtest.com/
- dnf - cxxtest - 4.4-44.fc45: normalized package name match | Fedora Rawhide package metadata: cxxtest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A JUnit-like testing framework for C++ | https://cxxtest.com
- dnf - cxxtest-doc - 4.4-44.fc45: normalized package name match | Fedora Rawhide package metadata: cxxtest-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation on how to use CxxTest | https://cxxtest.com


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
