Suggest a tool

Catch2

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What Catch2 is

Catch2 is a unit testing framework for C++ that also offers basic micro-benchmarking and BDD-style macros. Test names can be free-form strings rather than valid identifiers. Assertions are written as ordinary C++ boolean expressions inside macros such as REQUIRE. Sections within a test case share set-up and tear-down code. Benchmarks use a BENCHMARK macro and run only when selected with the [!benchmark] tag. Since version 3, Catch2 is a regular library with multiple headers and a separately compiled implementation instead of a single header. The earlier v2 line remains on its own branch.

Written from the project's README, read .

Category
Unit testing and test runners
License
BSL-1.0
Language
C++
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars21,4891
Forks3,5041
Open issues and PRs4411
Contributors4521
Commits in the last 90 days571
Last commit2026-09-141
Last releasev3.16.0, 2026-08-251
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed unit testing and test runners tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Catch2's, with its source. See also Catch2 alternatives.

Comparisons

Questions

Is Catch2 open source?

Yes. Catch2 is released under BSL-1.0, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is Catch2 maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-14, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does Catch2 have?

21,489 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is Catch2 written in?

The repository's primary language, as reported by the GitHub API, is C++.

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read