Reference articles on history, science, culture and more
Encyclopedia

Google Test

C++ testing framework by Google

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.

01Projects using Google Test

Besides being developed and used at Google, many other projects implement Google Test as well:

Watch videos about Google TestExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Google Test, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.