google/googletest
GoogleTest - Google Testing and Mocking Framework observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 99
- Release rhythm 65
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 274.0
- age_days: 4054
- days_rel: 23
- days_push: 7
- n_releases_24m: 3
Adoption not part of the score
38962 stars · 10858 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
GoogleTest is Google's C++ xUnit testing and mocking framework, merging the formerly separate GoogleTest and GoogleMock projects. It provides rich assertions, automatic test discovery, death tests, and value/type-parameterized tests.
Use cases
- write unit tests for C++ code
- mock C++ classes and dependencies in tests
- run parameterized tests with different inputs and types
- verify crash and exit behavior with death tests
- set up a C++ test suite with CMake
When to choose
- you need a mature, widely adopted C++ testing framework
- you want built-in mocking alongside assertions
- you need xUnit-style test discovery and rich assertion options
When to avoid
- your project requires C++ standards older than C++17
- you prefer lightweight header-only alternatives like Catch2 or doctest
- you are testing non-C++ languages
Facets
library · maturity stable
testing mocking testing developer-tools cpp cross-platform xunit unit-testing googlemock death-tests parameterized-tests
2 sources
- readme: https://github.com/google/googletest · fetched 2026-08-28 · 3205bebb0048
- homepage: https://google.github.io/googletest/ · fetched 2026-08-29 · 22a6ee3a7e3b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/googletest | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="google/googletest")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem