FREEDOM251

Freedom251 › Compare

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.

Boost.Test

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

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

The facts

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