Google Test

Google Test
DeveloperGoogle
Stable release
1.18.0 / August 10, 2026 (2026-08-10)
Written inC++
Operating systemWindows, Linux, macOS
TypeUnit testing tool
LicenseBSD 3-clause
Websitegoogle.github.io/googletest/ Edit this on Wikidata
Repositorygithub.com/google/googletest/

Google Test, often written as GoogleTest and referred to as gtest, is a library used to conduct unit testing in the programming language C++. Google Test is based on the xUnit architecture, a systematic methodology for assessing software components. Google Test is free and open-source software with a BSD 3-clause license.

Google Test can be compiled for multiple computer operating systems (OS), including those using the Portable Operating System Interface (POSIX; e.g., Linux, macOS), a set of standard OS interfaces, and Microsoft Windows. This allows for the execution of unit tests on both C and C++ codebases with few alterations to the source code.