C++ Testing

Open-source C++ projects categorized as Testing

Top 23 C++ Testing Projects

  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. 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
  3. doctest

    The fastest feature-rich C++11/14/17/20/23 single-header testing framework

    Project mention: The Two Factions of C++ | news.ycombinator.com | 2024-11-24

    catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.

    Especially if you have a build process that always runs your unit tests, it's nice to have a very fast test/compile/debug loop.

    https://github.com/doctest/doctest

  4. wtf

    wtf is a distributed, code-coverage guided, customizable, cross-platform snapshot-based fuzzer designed for attacking user and / or kernel-mode targets running on Microsoft Windows and Linux user-mode (experimental!). (by 0vercl0k)

  5. ut

    C++20 ฮผ(micro)/Unit Testing framework

  6. pict

    Pairwise Independent Combinatorial Tool

  7. FakeIt

    C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.

  8. utest.h

    ๐Ÿงช single header unit testing framework for C and C++

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. trompeloeil

    Header only C++14 mocking framework

  11. mull

    Practical mutation testing and fault injection for C and C++

    Project mention: Mull: Practical mutation testing for C and C++ | news.ycombinator.com | 2024-06-16
  12. imgui_test_engine

    Dear ImGui Automation Engine & Test Suite

  13. fuzzuf

    Fuzzing Unification Framework

  14. faker-cxx

    C++ Faker library for generating fake (but realistic) data.

    Project mention: Introducing CI Pipeline for Clang-Format Checks in faker-cxx | dev.to | 2024-11-21

    For the second part of my Release 0.3 contribution to the faker-cxx project, I addressed an issue involving the addition of a Continuous Integration (CI) pipeline. The goal was to ensure that any new code pushed to the repository adheres to the clang-format configuration provided in the root folder. This was an exciting opportunity to deepen my understanding of CI/CD workflows, especially since I am actively learning about them.

  15. snitch

    Lightweight C++20 testing framework. (by snitch-org)

  16. Hippomocks

  17. mocxx

    A versatile C++ function mocking framework.

  18. clean-test

    A modern C++-20 testing framework.

  19. KmTest

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

  20. dumbmutate

    Simple mutation-testing

  21. TDD

    See while you code

  22. tst

    C++ xUnit-like testing framework without macros

  23. DrMock

    C++ testing and mocking framework

  24. upp11

    C++11 lightweight single header unit test framework

  25. ArdorQuery

    ArdorQuery is a cross-platform tool for performing any HTTP(S) endpoints like REST API, HTML, Images, GraphQL, OData etc.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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++ Testing discussion

Log in or Post with

C++ Testing related posts

  • Functional Tests as a Tree of Continuations

    2 projects | news.ycombinator.com | 13 Mar 2025
  • You can use C-Reduce for any language

    7 projects | news.ycombinator.com | 27 Nov 2024
  • Introducing CI Pipeline for Clang-Format Checks in faker-cxx

    1 project | dev.to | 21 Nov 2024
  • Increasing Code Coverage in faker-cxx

    1 project | dev.to | 21 Nov 2024
  • Comparing C++ range libraries for filter+reverse case with non-trivial lambda

    6 projects | dev.to | 3 Jun 2024
  • C++ Comparison Operator Craziness

    1 project | news.ycombinator.com | 12 Feb 2024
  • Most "secure/private" browser that is still somewhat mainstream/compatible?

    2 projects | /r/browsers | 6 Dec 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 12 Jun 2025
    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. Learn more โ†’

Index

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

# Project Stars
1 Catch 19,449
2 doctest 6,257
3 wtf 1,621
4 ut 1,337
5 pict 1,332
6 FakeIt 1,288
7 utest.h 905
8 trompeloeil 846
9 mull 770
10 imgui_test_engine 506
11 fuzzuf 374
12 faker-cxx 355
13 snitch 284
14 Hippomocks 197
15 mocxx 130
16 clean-test 51
17 KmTest 50
18 dumbmutate 43
19 TDD 25
20 tst 16
21 DrMock 16
22 upp11 9
23 ArdorQuery 8

Sponsored
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.
www.influxdata.com