google/googletest

GoogleTest - Google Testing and Mocking Framework

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 45 minutes ago
Added to GitGenius on January 9th, 2026
Created on July 28th, 2015
Open Issues & Pull Requests: 493 (+0)
Number of forks: 10,848
Total Stargazers: 38,956 (+0)
Total Subscribers: 1,255 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 28.9 days
Mean response time: 519.3 days
90th percentile: 1918.1 days
Tracked items: 259

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "enhancement" is answered fastest, typically in about 5 weeks, while "bug" waits about 17 months. Only 6% of issues opened in the past year have been closed. Three people close 61% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 254
New in 7 days: 4
Closed in 7 days: 2
Avg open age: 1,258 days
Stale 30+ days: 226
Stale 90+ days: 218

Recent activity

Opened in 7 days: 4
Closed in 7 days: 2
Comments in 7 days: 2
Events in 7 days: 5

Top labels

  • bug (145)
  • enhancement (134)
  • More Information Requested (18)
  • help wanted (17)
  • question (6)
  • Response Requested (5)
  • priority: p2 (4)
  • good first issue (3)

Detailed Description

GoogleTest is Google's C++ testing and mocking framework, maintained as a unified repository that merged the formerly separate GoogleTest and GoogleMock projects. The framework is built on the xUnit testing architecture and provides comprehensive support for unit testing in C++. As of Release 1.17.0, the project requires at least C++17 compliance. The repository is actively maintained with documentation hosted on GitHub Pages, and the project has announced plans to take a dependency on Abseil in the future.

The framework offers a rich set of core testing capabilities designed to accommodate various testing scenarios. It includes automatic test discovery and execution, eliminating the need for manual test registration. GoogleTest provides an extensive collection of built-in assertions covering equality, inequality, exception handling, and other common test conditions. Beyond standard assertions, the framework allows developers to define custom assertions tailored to their specific code requirements. The framework supports death tests, which verify that code exits in expected ways, making it particularly useful for testing error-handling paths. Tests can be configured to treat failures as either fatal or non-fatal, allowing test execution to continue despite failures when appropriate.

The framework includes advanced parameterization features for comprehensive test coverage. Value-parameterized tests enable running the same test logic multiple times with different input values, while type-parameterized tests support running tests across different data types. This capability is particularly valuable for testing generic functions and template code. GoogleTest also provides various options for test execution, including running individual tests, controlling test execution order, and running tests in parallel for improved performance.

GoogleTest has achieved widespread adoption across notable projects including the Chromium browser and Chrome OS, the LLVM compiler infrastructure, Google's Protocol Buffers data interchange format, and the OpenCV computer vision library. The framework's ecosystem includes several complementary tools and extensions, such as GTest Runner for Qt5-based test execution, GoogleTest UI for progress tracking and failure visualization, and various VS Code extensions like GoogleTest Adapter and C++ TestMate that provide tree-view interfaces for test management and debugging. The project welcomes community contributions and maintains detailed contribution guidelines in its CONTRIBUTING.md file.