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:
- 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
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.