Side by side
Boost.Test vs CppUTest
Both stand on unit testing. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan LinuxWindows
Choose Boost.Test for C++ testing when you want flexible test organization, multiple linking options, and XML or JUNIT logs. Its main limitation is that assertion macros have no synchronization against concurrent calls from multiple threads.
Visit Boost.Test Free plan LinuxMacSelf-hosted+1
CppUTest provides a portable C/C++ testing framework with assertions, mocking, memory checks, and CI output. Users building from packages should note that MakefileWorker.mk is limited to source builds.
Visit CppUTestThe facts
| Boost.Test | CppUTest | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Windows | Linux, Mac, Self-hosted, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | boost.org | cpputest.github.io |
| On unit testing | #2 of 32 | #1 of 32 |
Boost.Test: what it does well
- Free under the Boost Software License, Version 1.0.
- Supports C++11, C++14, and C++17.
- Assertions cover floating-point values, collections, and strings.
- Supports data-driven and template test cases.
- Offers header-only, static, and shared-library usage.
What to know first
- Assertion macros lack synchronization against races from multiple threads.
- Listed platforms are Linux and Windows.
- The library page lists several Boost dependencies.
CppUTest: what it does well
- Supports C and C++ tests
- Includes mocking and memory leak detection
- Provides JUnit-style and TeamCity XML output
- Offers multiple documented build and package options
- BSD-3-Clause license
What to know first
- MakefileWorker.mk is not supported by pre-packaged installs
- Project support is directed to Google Groups and GitHub issues
Alternatives to Boost.Test Alternatives to CppUTest The whole list
