C++ Testing

Open-source C++ projects categorized as Testing

Top 23 C++ Testing Projects

  • 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: `DestroyJavaVM()` failing on OpenJ9? | reddit.com/r/javahelp | 2023-04-22

    ```c++ // https://github.com/catchorg/Catch2/tree/Catch1.x // https://github.com/philsquared/Catch/releases/download/v1.12.2/catch.hpp

  • doctest

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

    Project mention: Unit testing tool suggestions | reddit.com/r/learnprogramming | 2023-05-07

    I have never used "tools" for unit-tests, only web sites that show the results of the tests or code coverage. For C++ I prefer https://github.com/doctest/doctest but most companies I worked for use Catch2.

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • 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. (by 0vercl0k)

  • FakeIt

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

  • pict

    Pairwise Independent Combinatorial Tool

    Project mention: How to generate Decision Tables for testing efficiently with Typescript. | dev.to | 2022-09-11

    I thought about the current specifications on my own, but after that I learned about the existence of microsoft's tool PICT and the culture of TableDrivenTests. If there seems to be demand, I may change the specifications in the future to make it easier for users familiar with these.

  • ut

    UT: C++20 μ(micro)/Unit Testing Framework

    Project mention: [C++20][safety] static_assert is all you need (no leaks, no UB) | reddit.com/r/cpp | 2023-04-10

    I don't think stepping through static_assert is a thing? Curious if it is, though. Since constexpr is either run-time or compile-time and static_assert is not a poor man's debugging facility could be to -Dstatic_assert(...) assert(__VA_ARGS__) and gdb the code. Alternatively, a more refined solution would be to use an UT framework (for example https://github.com/boost-ext/ut) which helps with that. IMHO, TDD can also limit the requirement of stepping into the code and with gurantees that the code is memory safe and UB safe there is less need for sanitizers and valgrind etc. depending on the coverage.

  • trompeloeil

    Header only C++14 mocking framework

  • ONLYOFFICE

    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

  • mull

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

    Project mention: Am looking for Android app recommendations for these: Spotify , audio & Video cutter/editor , Workout planner & Journal+notes. Any advice is appreciated. | reddit.com/r/fossdroid | 2022-10-15

    For bromite Mull + ublock

  • utest.h

    🧪 single header unit testing framework for C and C++

  • cryptofuzz

    Fuzzing cryptographic libraries. Magic bug printer go brrrr.

  • fuzzuf

    Fuzzing Unification Framework

  • Hippomocks

  • snitch

    Lightweight C++20 testing framework. (by cschreib)

    Project mention: The snitch v1.1 testing framework is out -- now with full constexpr testing | reddit.com/r/cpp | 2023-05-13
  • mocxx

    A versatile C++ function mocking framework.

    Project mention: Unit testing without using interfaces everywhere? | reddit.com/r/cpp_questions | 2022-11-14

    We do use something similar to Mocxx: https://github.com/Guardsquare/mocxx such that we don't need to make wrappers for certain things.

  • KmTest

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

  • clean-test

    A modern C++-20 testing framework.

    Project mention: Clean Test: modern C++-20 unit-testing framework | news.ycombinator.com | 2023-03-13
  • dumbmutate

    Simple mutation-testing

  • TDD

    See while you code

    Project mention: static_assert is all you need (no leaks, no UB) | news.ycombinator.com | 2023-04-10

    Keep tests and code separate, and use tdd: https://github.com/yellowdragonlabs/TDD

    I usually have dozens/hundreds of tests that run faster than you can compile #include .

    All tests are executed automatically every time I save. It's very nice to watch the output while coding, with almost no latency.

  • DrMock

    C++ testing and mocking framework

  • tst

    C++ xUnit-like testing framework without macros

  • upp11

    C++11 lightweight single header unit test framework

  • AE405-Thrust_Stand

    Aero 405 Thrust Stand Project

  • ArdorQuery

    ArdorQuery is a tool for testing HTTP(S) endpoints from websites or RESTful APIs.

    Project mention: ArdorQuery release 0.0.6 | dev.to | 2022-12-23

    ArdorQuery it is a tool for testing HTTP(s) endpoints (inspired from Postman and cURL) oriented on working from keyboard. If you want to know the purpose of the application, you can check other post. In this post I tell you about important updates happend in new version 0.0.6. You can download the new version from this link.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

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). The latest post mention was on 2023-05-13.

C++ Testing related posts

Index

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

Project Stars
1 Catch 16,652
2 doctest 4,930
3 wtf 1,146
4 FakeIt 1,108
5 pict 1,086
6 ut 1,035
7 trompeloeil 708
8 mull 670
9 utest.h 642
10 cryptofuzz 543
11 fuzzuf 330
12 Hippomocks 177
13 snitch 169
14 mocxx 115
15 KmTest 47
16 clean-test 39
17 dumbmutate 33
18 TDD 22
19 DrMock 16
20 tst 12
21 upp11 8
22 AE405-Thrust_Stand 1
23 ArdorQuery 1
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
www.influxdata.com