C++ unit-testing

Open-source C++ projects categorized as unit-testing

Top 15 C++ unit-testing Projects

unit-testing
  1. 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

  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. CppUTest

    CppUTest unit testing and mocking framework for C/C++

    Project mention: CI Server for embedded systems based on Raspberry Pi | dev.to | 2025-06-16

    sudo apt install -y autoconf libtool && sudo git clone https://github.com/cpputest/cpputest.git /opt/cpputest && sudo chown -R $(whoami):$(whoami) /opt/cpputest && cd /opt/cpputest && autoreconf . -i && ./configure && make tdd && echo 'export CPPUTEST_HOME=/opt/cpputest' >> ~/.bashrc && source ~/.bashrc

  4. Boost.Test

    The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17) (by boostorg)

  5. AUnit

    Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test. Used with EpoxyDuino for continuous builds.

  6. clean-test

    A modern C++-20 testing framework.

  7. KmTest

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

  8. ut

    C++20 Unit-Testing library (by qlibs)

  9. SaaSHub

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

    SaaSHub logo
  10. dumbmutate

    Simple mutation-testing

  11. 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
  12. TDD

    See while you code

  13. tst

    C++ xUnit-like testing framework without macros

  14. cmr_tests_utils

    A header only library for simplifying ROS2 unit tests.

  15. chessCAMO

    chessCAMO is a newly proposed chess engine with a built-in variant that stands for Calculations Always Make Opportunities and was inspired by the very popular chess variant Crazyhouse. The "CAMO" portion comes from the idea that in this variant a player can sacrifice making a move to replace one of their pieces from the "piece reservoir".

  16. SocialNetwork

    Design and C++ implementation of a simple social network system

  17. alias

    Productivity app for accessing content (commands, text, etc) (super) fast content using tags. (by agudpp)

  18. 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++ unit-testing discussion

Log in or Post with

C++ unit-testing related posts

  • CI Server for embedded systems based on Raspberry Pi

    3 projects | dev.to | 16 Jun 2025
  • Mix Assertion, Logging, Unit Testing and Fuzzing with ZeroErr Framework

    1 project | news.ycombinator.com | 23 Sep 2024
  • Self Improvement

    3 projects | /r/PHP | 24 Jan 2023
  • New version of dumbmutate, a simple mutation-testing tool (like "fuzz-testing for unit-tests")

    1 project | /r/programming | 1 Aug 2021
  • "Fuzz-testing for unit-tests", new release of my mutation-testing tool dumbmutate

    1 project | /r/cpp | 1 Aug 2021
  • A simple C++ implementation of a social network - no blog :)

    1 project | /r/cpp | 23 Jun 2021
  • Another C++ unit testing framework without macros

    6 projects | /r/cpp | 16 Apr 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 25 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 unit-testing projects in C++? This list will help you:

# Project Stars
1 doctest 6,269
2 CppUTest 1,432
3 Boost.Test 199
4 AUnit 185
5 clean-test 51
6 KmTest 50
7 ut 47
8 dumbmutate 43
9 zeroerr 34
10 TDD 25
11 tst 16
12 cmr_tests_utils 9
13 chessCAMO 5
14 SocialNetwork 1
15 alias 1

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

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