GoogleTest

Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed

About

GoogleTest is ranked #1 of 32 in unit testing frameworks on Inferse. It runs on Linux, macOS, Windows. There is a free plan.

Compared on unit testing frameworks

Free plan
Yesgoogle.github.io
Supported languages
C++google.github.io
Built-in mocks
Yesgoogle.github.io
Parameterized cases
Yesgoogle.github.io
Parallel execution
Yesgoogle.github.io

Facts

Purpose
GoogleTest is Google’s C++ testing and mocking framework.google.github.io · 1 Oct 2026
Testing scope
GoogleTest supports any kind of C++ tests, not just unit tests.google.github.io · 1 Oct 2026
Architecture
GoogleTest is based on the xUnit testing framework architecture.github.com · 1 Oct 2026
Test discovery
GoogleTest automatically discovers and runs tests without requiring manual registration.github.com · 1 Oct 2026
Assertions
GoogleTest provides assertions for equality, inequality, exceptions, and other conditions, and supports user-defined assertions.github.com · 1 Oct 2026
Failure handling
GoogleTest supports death tests plus fatal and non-fatal test failures.github.com · 1 Oct 2026
Parameterized tests
GoogleTest supports value-parameterized and type-parameterized tests.github.com · 1 Oct 2026
Run options
GoogleTest can run individual tests, tests in a specific order, and tests in parallel.github.com · 1 Oct 2026
Supported platforms
GoogleTest follows Google’s Foundational C++ Support Policy and publishes supported compiler, platform, and build-tool versions.google.github.io · 1 Oct 2026
C++ requirement
The 1.18.x branch requires at least C++17.github.com · 1 Oct 2026
Build integration
GoogleTest provides quickstarts for Bazel and CMake.google.github.io · 1 Oct 2026
pkg-config
GoogleTest includes pkg-config files for compiling and linking GoogleTest and GoogleMock.google.github.io · 1 Oct 2026
Documentation support
The user guide includes primer, advanced topics, mocking guides, FAQs, references, samples, and community documentation.google.github.io · 1 Oct 2026
License
The repository uses the BSD-3-Clause license, permitting source and binary redistribution subject to its conditions and disclaimer.github.com · 1 Oct 2026
Adoption
The project lists Chromium, LLVM, Protocol Buffers, and OpenCV among notable users.github.com · 1 Oct 2026

Best GoogleTest alternatives

See all 12