# Google Test

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Google_Test
> Markdown URL: https://mediated.wiki/source/Google_Test.md
> Source: https://en.wikipedia.org/wiki/Google_Test
> Source revision: 1348341110
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

C++ testing framework by Google

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) This article may rely excessively on sources too closely associated with the subject, potentially preventing the article from being verifiable and neutral. Please help improve it by replacing them with more appropriate citations to reliable, independent sources. (August 2013) (Learn how and when to remove this message) This article's tone or style may not reflect the encyclopedic tone used on Wikipedia. See Wikipedia's guide to writing better articles for suggestions. (June 2016) (Learn how and when to remove this message) This article contains promotional content. Please help improve it by removing promotional language and inappropriate external links, and by adding encyclopedic text written from a neutral point of view. See our advice if the article is about you and read our scam warning in case someone asks for money to edit this article. (October 2019) (Learn how and when to remove this message) (Learn how and when to remove this message)

Google Test Developer Google Stable release 1.17.0[1] / April 30, 2025; 13 months ago (2025-04-30) Written in C++ Operating system Windows, Linux, macOS Type Unit testing tool License BSD 3-clause Website google.github.io/googletest/ Repository github.com/google/googletest/

**Google Test**, often written as **GoogleTest** and referred to as **gtest**, is a specialized [library](/source/Library_(computing)) used to conduct [unit testing](/source/Unit_testing) in the [programming language](/source/Programming_language) [C++](/source/C%2B%2B). Google Test is based on the [xUnit](/source/XUnit) architecture, a systematic methodology for assessing software components.[2] Google Test is [free and open-source software](/source/Free_and_open-source_software) with a [BSD 3-clause license](/source/BSD_licenses#3-clause).[3]

Google Test can be [compiled](/source/Compiler) for a diverse range of [computer](/source/Computer) [operating systems](/source/Operating_system) (OS), including those using the Portable Operating System Interface ([POSIX](/source/POSIX); e.g., [Linux](/source/Linux), [macOS](/source/MacOS)), a set of standard OS interfaces, and [Microsoft Windows](/source/Microsoft_Windows). This adaptability facilitates [executing](/source/Execution_(computing)) unit tests on both [C](/source/C_(programming_language)) and [C++](/source/C%2B%2B) [codebases](/source/Codebase), with minimal alterations needed in the [source code](/source/Source_code).[*[citation needed](https://en.wikipedia.org/wiki/Wikipedia:Citation_needed)*]

## Projects using Google Test

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

- [Android Open Source Project](/source/Android_Open_Source_Project) operating system[4]

- [Chromium](/source/Chromium_(web_browser)) projects (behind the [Chrome browser](/source/Google_Chrome) and [ChromeOS](/source/ChromeOS))

- [LLVM](/source/LLVM) compiler

- [Protocol Buffers](/source/Protocol_Buffers) ([Google](/source/Google)'s data interchange format)

- [OpenCV](/source/OpenCV) computer vision library

- [Robot Operating System](/source/Robot_Operating_System)[5]

- [GROMACS](/source/GROMACS) molecular dynamics simulation package[6]

## Related tools

Google Test UI is a [software tool](/source/Software_tool) for testing computer programs, and serves as a test runner. It employs a 'test binary', a [compiled](/source/Compiler) program responsible for executing tests and analyzing their results, to evaluate software functions. It visually presents the testing progress via a [progress bar](/source/Progress_bar) and displays a list of identified issues or 'test failures'. The tool is primarily written in [C#](/source/C_Sharp_(programming_language)).[7] A [Visual Studio](/source/Visual_Studio) extension, Google Test Adapter, complements its functions within the Visual Studio environment.[8]

## See also

- [Free and open-source software portal](https://en.wikipedia.org/wiki/Portal:Free_and_open-source_software)

- [List of unit testing frameworks](/source/List_of_unit_testing_frameworks)

- [CppUnit](/source/CppUnit)

## References

1. **[^](#cite_ref-1)** [Google Test v1.17.0 release notes](https://github.com/google/googletest/releases/tag/v1.17.0), retrieved 2025-10-14

1. **[^](#cite_ref-quick_intro_2-0)** [A quick introduction to the Google C++ Testing Framework](https://web.archive.org/web/20160316134644/http://www.ibm.com/developerworks/aix/library/au-googletestingframework.html), Arpan Sen, IBM DeveloperWorks, 2010-05-11, retrieved 2016-04-12

1. **[^](#cite_ref-3)** [Google Test's repository](https://github.com/google/googletest), retrieved 2016-04-12, cites [New BSD](http://opensource.org/licenses/BSD-3-Clause) as license. The license file is at [github.com/google/googletest/blob/master/googletest/LICENSE](https://github.com/google/googletest/blob/master/googletest/LICENSE)

1. **[^](#cite_ref-4)** ["Android Native tests"](https://web.archive.org/web/20210120132826/https://source.android.com/compatibility/tests/development/native-func-e2e). Archived from [the original](https://source.android.com/compatibility/tests/development/native-func-e2e) on 2021-01-20. Retrieved 2021-02-05.

1. **[^](#cite_ref-5)** [The ament_cmake Repository](https://docs.ros.org/en/humble/Concepts/About-Build-System.html?highlight=gtest#the-ament-cmake-repository)

1. **[^](#cite_ref-6)** [Gromacs Testing Framework](http://manual.gromacs.org/documentation/5.1/dev-manual/testutils.html#unit-testing-framework)

1. **[^](#cite_ref-7)** [Google Test UI](https://github.com/ospector/gtest-gbar) retrieved 2016-04-12

1. **[^](#cite_ref-8)** Soltenborn, Christian (12 August 2022). ["GoogleTestAdapter"](https://github.com/csoltenborn/GoogleTestAdapter). *GitHub*.

## Further reading

- Whittaker, James (2012). *How Google Tests Software*. Boston, Massachusetts: Pearson Education. [ISBN](/source/ISBN_(identifier)) [978-0-321-80302-3](https://en.wikipedia.org/wiki/Special:BookSources/978-0-321-80302-3).

## External links

- [Google Test](https://github.com/google/googletest) on [GitHub](/source/GitHub)

- [Google Test Primer documentation](https://github.com/google/googletest/blob/main/docs/primer.md)

- [Gtest](https://conan.io/center/gtest/1.10.0/) C/C++ Conan package

- [A quick introduction to the Google C++ Testing Framework](https://developer.ibm.com/articles/au-googletestingframework/), Arpan Sen, IBM DeveloperWorks, 2010-05-11

- [The Google Test and Development Environment](http://googletesting.blogspot.com/2014/01/the-google-test-and-development_21.html), Anthony Vallone, 2014-01-21

---
Adapted from the Wikipedia article [Google Test](https://en.wikipedia.org/wiki/Google_Test) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Google_Test?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
