Catch2

用于单元测试、TDD 和 BDD 的现代 C++ 本机测试框架,使用 C++14、C++17 及更高版本(C++11 支持在 v2.x 分支中,C++03 支持在 Catch1.x 分支中)。「A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)」

Github stars Tracking Chart


catch logo

Github Releases
Build Status
Build status
codecov
Try online
Join the chat in Discord: https://discord.gg/4CWS9zD

The latest version of the single header can be downloaded directly using this link

Catch2 is released!

If you've been using an earlier version of Catch, please see the
Breaking Changes section of the release notes
before moving to Catch2. You might also like to read this blog post for more details.

What's the Catch?

Catch2 is a multi-paradigm test framework for C++. which also supports
Objective-C (and maybe C).
It is primarily distributed as a single header file, although certain
extensions may require additional headers.

How to use it

This documentation comprises these three parts:

More

Main metrics

Overview
Name With Ownercatchorg/Catch2
Primary LanguageC++
Program languageC++ (Language Count: 8)
Platform
License:Boost Software License 1.0
所有者活动
Created At2010-11-08 18:22:56
Pushed At2025-06-02 03:36:26
Last Commit At
Release Count135
Last Release Namev3.8.1 (Posted on 2025-04-08 16:38:15)
First Release Namev1.2.0 (Posted on 2015-06-29 18:07:48)
用户参与
Stargazers Count19.5k
Watchers Count443
Fork Count3.1k
Commits Count4.6k
Has Issues Enabled
Issues Count1936
Issue Open Count410
Pull Requests Count653
Pull Requests Open Count38
Pull Requests Close Count344
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private