catch2
brew install catch2
v3.15.1
BSL-1.0
Modern, C++-native, test framework
434
30-day installs · #1882
2.4k
90-day · #1485
7.0k
365-day · #1670
20.5k
★ GitHub stars · updated 2mo ago
Build dependencies
GitHub topics
bdd
cpp
cpp14
framework
no-dependencies
tdd
test-framework
testing
Links
- https://github.com/catchorg/Catch2
- GitHub: catchorg/Catch2
- Brew formula source: Formula/c/catch2.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"cmake"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Modern, C++-native, test framework",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:11+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "catch2",
"github_default_branch": "devel",
"github_last_commit_at": "2026-06-14T18:26:07Z",
"github_readme_excerpt": "\u003ca id=\"top\"\u003e\u003c/a\u003e\n\n\n[](https://github.com/catchorg/catch2/releases)\n[](https://github.com/catchorg/Catch2/actions/workflows/linux-simple-builds.yml)\n[](https://github.com/catchorg/Catch2/actions/workflows/linux-other-builds.yml)\n[](https://github.com/catchorg/Catch2/actions/workflows/mac-builds.yml)\n[](https://ci.appveyor.com/project/catchorg/catch2)\n[](https://codecov.io/gh/catchorg/Catch2)\n[](https://godbolt.org/z/EdoY15q9G)\n[](https://discord.gg/4CWS9zD)\n\n\n## What is Catch2?\n\nCatch2 is mainly a unit testing framework for C++, but it also\nprovides basic micro-benchmarking features, and simple BDD macros.\n\nCatch2\u0027s main advantage is that using it is both simple and natural.\nTest names do not have to be valid identifiers, assertions look like\nnormal C++ boolean expressions, and sections provide a nice and local way\nto share set-up and tear-down code in tests.\n\n**Example unit test**\n```cpp\n#include \u003ccatch2/catch_test_macros.hpp\u003e\n\n#include \u003ccstdint\u003e\n\nuint32_t factorial( uint32_t number ) {\n return number \u003c= 1 ? number : factorial(number-1) * number;\n}\n\nTEST_CASE( \"Factorials are computed\", \"[factorial]\" ) {\n REQUIRE( factorial( 1) == 1 );\n REQUIRE( f",
"github_repo": "catchorg/Catch2",
"github_stars": 20453,
"github_topics": [
"bdd",
"cpp",
"cpp14",
"framework",
"no-dependencies",
"tdd",
"test-framework",
"testing"
],
"homepage": "https://github.com/catchorg/Catch2",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 434,
"installs_365d": 6980,
"installs_90d": 2370,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "BSL-1.0",
"llm_generated_at": null,
"llm_model": null,
"name": "catch2",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1882,
"rank_365d": 1670,
"rank_90d": 1485,
"raw_hash": "378ef21fd6395e9b",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/catch2.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "3.15.1",
"versioned_formulae": [],
"why_use_this": null
}