Google Test
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.
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. ==Projects using Google Test== Besides being developed and used at Google, many other projects implement Google Test as well: Android Open Source Project operating system Chromium projects (behind the Chrome browser and ChromeOS) LLVM compiler Protocol Buffers (Google's data interchange format) OpenCV computer vision library Robot Operating System GROMACS molecular dynamics simulation package ==Related tools== Google Test UI is a software tool for testing computer programs, and serves as a test runner. It employs a 'test binary', a compiled program responsible for executing tests and analyzing their results, to evaluate software functions. It visually presents the testing progress via a progress bar and displays a list of identified issues or 'test failures'. The tool is primarily written in C#. A Visual Studio extension, Google Test Adapter, integrates the framework within the Visual Studio environment. ==See also== List of unit testing frameworks CppUnit ==References== ==Further reading== ==External links== Google Test Primer documentation Gtest C/C++ Conan package A quick introduction to the Google C++ Testing Framework, Arpan Sen, IBM DeveloperWorks, 2010-05-11 The Google Test and Development Environment, Anthony Vallone, 2014-01-21
References
No reference rows published for this article.
Cite this article
MLA
"Google Test." encyclopegia.org, 2026, https://encyclopegia.org/wiki/google-test. Accessed 24 November 2026.
Chicago
"Google Test." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/google-test.
APA
encyclopegia.org. (2026). Google Test. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/google-test
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON