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星跟踪图


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

主要指标

概览
名称与所有者catchorg/Catch2
主编程语言C++
编程语言C++ (语言数: 8)
平台
许可证Boost Software License 1.0
所有者活动
创建于2010-11-08 18:22:56
推送于2025-07-15 13:23:58
最后一次提交
发布数135
最新版本名称v3.8.1 (发布于 2025-04-08 16:38:15)
第一版名称v1.2.0 (发布于 2015-06-29 18:07:48)
用户参与
星数19.6k
关注者数443
派生数3.1k
提交数4.6k
已启用问题?
问题数1942
打开的问题数392
拉请求数662
打开的拉请求数31
关闭的拉请求数344
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?