Our great sponsors
-
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)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Look into doxygen and hdoc
I've only ever personally used Catch2, Boost.Test, and a few proprietary unit test frameworks from my company. I enjoy using both Catch2 and Boost.Test, but they have a very different feel. Of these two I find Catch2 easier to get started with. It also has very good CMake an CTest integration. I have heard good things about GoogleTest, but I have never used it myself. GoogleTest also has good CTest support
You didn't ask about this, but I think its worth mentioning Conan and vcpkg. Of the two I have found vcpkg easier to work with, but both can be good solutions. Combining one of these package managers with CMake presets can make getting a project setup on a new machine almost trivial (great for CI or onboarding new devs).
You didn't ask about this, but I think its worth mentioning Conan and vcpkg. Of the two I have found vcpkg easier to work with, but both can be good solutions. Combining one of these package managers with CMake presets can make getting a project setup on a new machine almost trivial (great for CI or onboarding new devs).