# Install cxxtest with Homebrew, apt, dnf, Nix

C++ unit testing framework similar to JUnit, CppUnit and xUnit. Version 4.4 via Homebrew; verified 2026-06-28.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cxxtest
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cxxtest
```

  Evidence: 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
```

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

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:cxxtest
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cxxtest>
- **Version:** 4.4
- **Source summary:** C++ unit testing framework similar to JUnit, CppUnit and xUnit
- **Homepage:** <https://github.com/CxxTest/cxxtest>
- **Repository:** <https://github.com/CxxTest/cxxtest>
- **Upstream docs:** <http://cxxtest.com/>
- **License:** LGPL-3.0-only
- **Source archive:** <https://github.com/CxxTest/cxxtest/releases/download/4.4/cxxtest-4.4.tar.gz>
- **Last updated:** 2026-06-28T01:06:15-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cxxtestgen (cli)
- cxxtestgen (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.4
- Package-manager updated: 2026-06-28
- Local data: ok
- Upstream repository: https://github.com/CxxTest/cxxtest
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-43.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A JUnit-like testing framework for C++ | https://cxxtest.com
- dnf - cxxtest-doc - 4.4-43.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation on how to use CxxTest | https://cxxtest.com


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [shunit2](https://www.automicvault.com/pkg/brew/shunit2/) - Shares av.db curated category or tags: cli, developer-tools, test-framework, testing, unit-testing.
- [cutter-cli](https://www.automicvault.com/pkg/brew/cutter-cli/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing, xunit.
- [phpunit](https://www.automicvault.com/pkg/brew/phpunit/) - Shares av.db curated category or tags: cli, developer-tools, test-framework, testing, unit-testing.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [check](https://www.automicvault.com/pkg/brew/check/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [cppunit](https://www.automicvault.com/pkg/brew/cppunit/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [cram](https://www.automicvault.com/pkg/brew/cram/) - Shares av.db curated category or tags: cli, developer-tools, test-framework, testing.
- [creduce](https://www.automicvault.com/pkg/brew/creduce/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, testing.

## Combined YAML source

View the package source record on GitHub. [combined/cxxtest.yml](https://github.com/automic-vault/db/blob/main/combined/cxxtest.yml)


## Sources

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