Google's C++ testing framework supporting xUnit-style unit tests, mocking, death tests, parameterized tests, and a rich set of assertions.
- v1.18.0
- Published at
- Aug 10, 2026
- 39,618
- Stars
- 12,274,939
- Download
- Synced at
- Oct 4, 2026
Latest release
v1.18.0Aug 10, 2026, 05:37 PMDownloads slow? Switch the source anytime above
README
Project Overview
GoogleTest is Google's C++ test framework, a merger of the formerly separate GoogleTest and GoogleMock projects. It supports xUnit-style unit testing.
Key Features
- xUnit test framework
- Automatic test discovery
- Rich set of assertions
- User-defined assertions
- Death tests
- Fatal and non-fatal failures
- Value-parameterized and type-parameterized tests
Target Audience
- C++ developers
- Teams who need unit testing and mocking
- Developers working on large projects like Chromium and LLVM
Quick Start
- Get the source from GitHub or install via package manager
- Refer to the GoogleTest User's Guide
- Start with the GoogleTest Primer
Core Advantages
- Official Google testing framework
- Comprehensive features covering testing, mocking, and parameterized tests
- Adopted by large projects like Chromium and LLVM
System Requirements
- OS: Cross-platform (supports C++17+ platforms)
Release history
Sort