Side by side
CppUTest vs GoogleTest
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 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 CppUTest Free plan LinuxMacWindows
GoogleTest offers a broad set of C++ testing and mocking capabilities, from automatic test discovery to parallel execution. Check the published compiler, platform and build-tool versions, and note the C++17 requirement for the 1.18.x branch.
Visit GoogleTestThe facts
| CppUTest | GoogleTest | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Mac, Self-hosted, Windows | Linux, Mac, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | cpputest.github.io | google.github.io |
| On unit testing | #1 of 32 | #3 of 32 |
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
GoogleTest: what it does well
- Discovers and runs tests without manual registration.
- Supports fatal, non-fatal and death tests.
- Provides value- and type-parameterized tests.
- Can run tests in parallel.
- Free under the BSD-3-Clause license.
What to know first
- The 1.18.x branch requires at least C++17.
- Supports C++ only.
Alternatives to CppUTest Alternatives to GoogleTest The whole list