C++ testing-framework

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

Top 6 C++ testing-framework Projects

  • doctest

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

    Project mention: Memory Safety in the D Programming Language (Part 2 of N) | reddit.com/r/programming | 2022-10-08

    This is, honestly, super easy to get going. Nowadays you have a ton of libraries and more-than-decent build systems. With Meson/CMake and Conan/Vcpkg I can set up a project with testing in 3 minutes. Also, I think that at the end of the day you want your tests to live somewhere else. But if you want to embed them, you also have https://github.com/doctest/doctest.

  • ut

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

    Project mention: snatch -- A lightweight C++20 testing framework | reddit.com/r/cpp | 2022-10-18

    It was not easy, I had to modify Boost UT to get it to run my tests. It doesn't support type-parametrized tests when the type parameter is non-copiable, which was the case for me. This is a symptom of a larger issue, which is that it relies on std::apply and std::tuple to generate the type-parametrized tests, which in turns requires instantiating the tuple and the contained objects (even though these instances aren't actually used; eh). That's a no go for me, since I need to carefully monitor when instance are created, and this was throwing off my test code. I had to effectively disable these checks to get it to run without failures. Then there was a similar issue with expect(), which doesn't work if part of the expression is non-copiable. I reported these issues to them.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • utest.h

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

  • testo

    End-to-end-tests automation framework

    Project mention: Testo Framework: end-to-end-tests automation with virtual machines | reddit.com/r/coolgithubprojects | 2022-08-25
  • tst

    C++ xUnit-like testing framework without macros

  • pptest

    An abstract reporting header-only unit-testing library for C++.

    Project mention: pptest (testing library) github repo | reddit.com/r/dspp_lib | 2022-11-18
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 2022-11-18.

C++ testing-framework related posts


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

Project Stars
1 doctest 4,374
2 ut 928
3 utest.h 541
4 testo 10
5 tst 9
6 pptest 1
Workflow assistant built for devs & their teams
Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.