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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?