# google/googletest

GoogleTest - Google Testing and Mocking Framework

Repository: https://github.com/google/googletest
Canonical: https://ross.abutalabs.com/products/googletest
Homepage: https://google.github.io/googletest/
Language: C++
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-26T19:07:19+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 65, longevity 100
- inputs: {"age_days": 4054, "days_push": 7, "days_rel": 23, "gap_med": 274.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 38962, forks 10858 (observed 2026-08-28T04:12:07.732388+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: testing, mocking
- domain: testing, developer-tools
- platform: cpp, cross-platform
- tags: xunit, unit-testing, googlemock, death-tests, parameterized-tests

## Member repositories
- google/googletest (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:07.732388+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:24:21.105559+00:00, confidence not recorded.
  - readme: https://github.com/google/googletest (fetched 2026-08-28T04:12:07.732388+00:00, sha 3205bebb0048)
  - homepage: https://google.github.io/googletest/ (fetched 2026-08-29T07:46:47.279386+00:00, sha 22a6ee3a7e3b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
