FREEDOM251

Freedom251 › Compare

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.

CppUTest

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

GoogleTest

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 GoogleTest

The facts

CppUTestGoogleTest
Free planYesYes
Open sourceNot publishedNot published
Runs onLinux, Mac, Self-hosted, WindowsLinux, Mac, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websitecpputest.github.iogoogle.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