Testing Frameworks for C++ C++ Testing Frameworks Testing Frameworks
Doctest MIT
- probably the best choice for small projects
- approach allows for well-structured, self-documenting tests
- modeled after Catch2 (shares some code with it)
- very easy to set up, one header only
- very fast compilation & execution
- very good and concise documentation
Catch 2 BSL-1.0
- approach allows for well-structured, self-documenting tests
- relatively easy to set up
- very good and concise documentation
- data generation helpers
- set of predefined
matchers
for comparing values - microbenchmarking tools
- logging
Google Test
- BSD 3-Clause "New" or "Revised"
Boost Test
- BSL-1.0
QtTest
part of the Qt Project
Bandit
- MIT
CppUTest
- BSD-3-Clause
Comments…