# Catch2

> A C++ unit testing framework with micro-benchmarks and BDD macros

Source: https://talira.ai/catalog/catch2-zy7ej5d4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks)
- Platforms: linux, macos, windows[^2]
- Licence: BSL-1.0[^1]
- Pricing: Free[^1]
- Free tier: yes[^1]
- Backed by: [catchorg](https://talira.ai/orgs/catchorg.md)

Catch2 is a unit testing framework for C++14 and later. Test names are free-form strings, assertions are written as ordinary C++ boolean expressions, and sections share set-up and tear-down code inside a test case without fixtures. It also has basic micro-benchmarking and simple BDD-style macros, matchers, generators for data-driven tests, and reporters for CI systems. Version 3 is a normal compiled library with several headers rather than the single header of version 2, and integrates with CMake. It is free and open source under the Boost Software License 1.0.

## Links

- GitHub: https://github.com/catchorg/Catch2
- Docs: https://github.com/catchorg/Catch2/tree/devel/docs

## Problems it solves

- write unit tests for a C++ project with readable assertions
- benchmark a small C++ function inside the test suite
- run C++ tests in CI and get results in a format it understands

## Features

- Free-form test names
- Natural C++ boolean assertions
- Sections for shared set-up and tear-down
- Micro-benchmarks
- BDD-style macros
- Matchers and generators
- CMake integration
- Reporters for CI

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 0.93, adoption 0.87, momentum 0.62, community 1.00, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 50 commits in the last 90 days
- latest release v3.16.1 52 days ago
- 21.6k GitHub stars
- 458 contributors
- accepts sponsorship (Github, Custom)
- backed by catchorg

## Alternatives

- [GoogleTest](https://talira.ai/catalog/googletest-e6rtzptx.md): Google's C++ testing and mocking framework

## Sources

[^1]: https://github.com/catchorg/Catch2/blob/devel/LICENSE.txt (checked 25 Nov 2026)
[^2]: https://github.com/catchorg/Catch2/blob/devel/README.md (checked 25 Nov 2026)
