# GoogleTest

> Google's C++ testing and mocking framework

Source: https://talira.ai/catalog/googletest-e6rtzptx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

GoogleTest is Google's C++ testing and mocking framework, which merged the formerly separate GoogleTest and GoogleMock. It's an xUnit-style framework that discovers and runs tests automatically, with a rich set of assertions and your own, death tests (code that should crash), fatal and non-fatal failures, value- and type-parameterized tests and many options for running tests, plus mock objects with matchers and actions. It builds with Bazel or CMake, and requires at least C++17.

## Links

- Website: https://google.github.io/googletest/
- GitHub: https://github.com/google/googletest
- Docs: https://google.github.io/googletest/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/googletest>[^1]

## Problems it solves

- write unit tests for my C++ code
- mock dependencies in C++ tests
- test that C++ code crashes or exits as expected
- run parameterized tests over many inputs in C++

## Features

- automatic test discovery
- rich and user-defined assertions
- death tests
- value- and type-parameterized tests
- GoogleMock mocks, matchers and actions
- Bazel and CMake builds

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by Google
- funding: public company (NASDAQ:GOOGL)

Warnings:

- GitHub activity not fetched yet

## Sources

[^1]: https://formulae.brew.sh/formula/googletest (checked 24 Nov 2026)
[^2]: https://github.com/google/googletest/blob/main/LICENSE (checked 24 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
