// Workers AI · dad joke modeWhat did the Google Test say to the bug? You're searched.
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
| Google Test | |
|---|---|
| Developer | |
| Stable release | 1.17.0[1]
/ April 30, 2025 |
| Written in | C++ |
| Operating system | Windows, Linux, macOS |
| Type | Unit testing tool |
| License | BSD 3-clause |
| Website | google |
| Repository | github |
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.[2] Google Test is free and open-source software with a BSD 3-clause license.[3]
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.[citation needed]
Projects using Google Test
[edit]Besides being developed and used at Google, many other projects implement Google Test as well:
- Android Open Source Project operating system[4]
- Chromium projects (behind the Chrome browser and ChromeOS)
- LLVM compiler
- Protocol Buffers (Google's data interchange format)
- OpenCV computer vision library
- Robot Operating System[5]
- GROMACS molecular dynamics simulation package[6]
Related tools
[edit]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#.[7] A Visual Studio extension, Google Test Adapter, integrates the framework within the Visual Studio environment.[8]
See also
[edit]References
[edit]- ↑ Google Test v1.17.0 release notes, retrieved 2025-10-14
- ↑ A quick introduction to the Google C++ Testing Framework, Arpan Sen, IBM DeveloperWorks, 2010-05-11, retrieved 2016-04-12
- ↑ Google Test's repository, retrieved 2016-04-12, cites New BSD as license. The license file is at github
.com /google /googletest /blob /master /googletest /LICENSE - ↑ "Android Native tests". Archived from the original on 2021-01-20. Retrieved 2021-02-05.
- ↑ The ament_cmake Repository
- ↑ Gromacs Testing Framework
- ↑ Google Test UI retrieved 2016-04-12
- ↑ Soltenborn, Christian (12 August 2022). "GoogleTestAdapter". GitHub.
Further reading
[edit]- Whittaker, James (2012). How Google Tests Software. Boston, Massachusetts: Pearson Education. ISBN 978-0-321-80302-3.
External links
[edit]- Google Test on GitHub
- 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