C++ test-framework

Open-source C++ projects categorized as test-framework

Top 5 C++ test-framework Projects

test-framework
  1. Catch

    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)

    Project mention: Functional Tests as a Tree of Continuations | news.ycombinator.com | 2025-03-13

    The C++ testing framework Catch2 enables this kind of testing. The first time I saw it I couldn't figure out how some of the tests would even pass.

    It turns out that using some evil macro magic, each test re-runs from the start for each inner section [1]. It also makes deduplicating setup code completely painless and natural.

    You just have to get over the completely non-standard control flow. It's a good standard bearer for why metaprogramming is great, even if you're forced to do it in C/C++'s awful macro system.

    [1] https://github.com/catchorg/Catch2/blob/devel/docs/tutorial....

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. xtd

    Free open-source modern C++20 framework to create console (CLI), forms (GUI like WinForms) and unit test (xUnit) applications and libraries on Windows, macOS, Linux, iOS, Android, FreeBSD, and Haiku.

  4. CIDLib

    The CIDLib general purpose C++ development environment

  5. KmTest

    Kernel-mode C++ unit testing framework in BDD-style

  6. zeroerr

    A powerful C++ unit testing/assert/log utils

    Project mention: Mix Assertion, Logging, Unit Testing and Fuzzing with ZeroErr Framework | news.ycombinator.com | 2024-09-23
  7. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ test-framework discussion

Log in or Post with

C++ test-framework related posts

  • Functional Tests as a Tree of Continuations

    2 projects | news.ycombinator.com | 13 Mar 2025
  • C++ Comparison Operator Craziness

    1 project | news.ycombinator.com | 12 Feb 2024
  • How can I check the execution time of a program rendered in SFML?

    3 projects | /r/cpp_questions | 5 Dec 2023
  • Semi crise existentielle de développeur

    1 project | /r/QuebecTI | 7 Jun 2023
  • `DestroyJavaVM()` failing on OpenJ9?

    2 projects | /r/javahelp | 22 Apr 2023
  • [Cpp] Comment testez-vous la couverture du code C ++? Y a-t-il des solutions multiplateforme viables?

    1 project | /r/enfrancais | 21 Apr 2023
  • How do you use the Catch testing library?

    4 projects | /r/cpp_questions | 9 Apr 2023
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

What are some of the best open-source test-framework projects in C++? This list will help you:

# Project Stars
1 Catch 19,728
2 xtd 1,051
3 CIDLib 213
4 KmTest 50
5 zeroerr 34

Sponsored
Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?