Skip to content
SPECIFICTION
Get listed

Boost.Test vs GoogleTest

Boost.Test

boost.org

GoogleTest

google.github.io

Side by side

FigureBoost.TestGoogleTest
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYesYes
macOS—Yes
LinuxYesYes
Plans published11
Spec score · Unit Testing Frameworks8.3 (#3)8.1 (#8)
Spec score · Unit Testing8.3 (#4)8.0 (#7)
AssertionsIts BOOST_TEST assertion macro handles floating-point values, collections, and strings with appropriate comparison methods.GoogleTest provides assertions for equality, inequality, exceptions, and other conditions, and supports user-defined assertions.
LicenseBoost.Test is distributed under the Boost Software License, Version 1.0.The repository uses the BSD-3-Clause license, permitting source and binary redistribution subject to its conditions and disclaimer.
PurposeBoost.Test supports simple program testing, full unit testing, and program execution monitoring.GoogleTest is Google’s C++ testing and mocking framework.

Plans

Boost.Test

  • Boost.TestFree

Boost.Test pricing →

GoogleTest

  • GoogleTestFree

GoogleTest pricing →

In their own words

Boost.Test

Boost.Test is a free C++11, C++14, and C++17 library for simple program testing, unit testing, and program execution monitoring. Its BOOST_TEST macro handles comparisons involving floating-point values, collections, and strings. Test cases can self-register and be arranged into suites with fixtures, decorators, labels, dependencies, descriptions, and groups. Documentation also covers data-driven and template cases. Assertion context and configurable logging provide failure diagnostics, while XML and JUNIT logs support third-party and continuous-integration tools. Boost.Test can be used as a header-only, static, or shared library and is distributed under the Boost Software License, Version 1.0. The Boost 1.92.0 release page lists Unix source archives plus Windows source and binary downloads. The library page links documentation, Boost Slack discussion, and GitHub issues, and lists dependencies including Algorithm, Assert, Bind, Config, Core, Exception, and Type Traits. Listed platforms are Linux and Windows. There is no free trial because the software is free.

Visit boost.org

GoogleTest

GoogleTest is Google’s free C++ framework for testing and mocking on Linux, macOS, and Windows. Built on the xUnit architecture, it supports many kinds of C++ tests rather than only unit tests and discovers tests automatically without manual registration. Assertions cover equality, inequality, exceptions, and other conditions, with support for user-defined assertions. The framework includes fatal and non-fatal failures, death tests, and value-parameterized and type-parameterized cases. Developers can run individual tests, choose an order, or execute tests in parallel. Quickstarts cover Bazel and CMake, and pkg-config files help compile and link GoogleTest and GoogleMock. Documentation includes primers, advanced topics, mocking guides, FAQs, references, samples, and community material. The 1.18.x branch requires at least C++17. GoogleTest follows Google’s Foundational C++ Support Policy and publishes supported compiler, platform, and build-tool versions. It uses the BSD-3-Clause license, permitting redistribution under its conditions.

Visit google.github.io