This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template 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, third-party sources. (August 2013) (Learn how and when to remove this template 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 template message) This article contains content that is written like an advertisement. Please help improve it by removing promotional content and inappropriate external links, and by adding encyclopedic content written from a neutral point of view. (October 2019) (Learn how and when to remove this template message) .mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}For Wikipedia's how-to guide on referencing Google search results in deletion, notability or other discussions, see Wikipedia:Search engine test (Learn how and when to remove this template message)
Google Test
Stable release
1.13.0[1] / January 17, 2023; 7 months ago (2023-01-17)
Written inC++
Operating systemLinux, Microsoft Windows, macOS
TypeUnit testing tool
LicenseBSD 3-clauses Edit this on Wikidata

Google Test (also known as gtest) is a unit testing library for the C++ programming language, released under the BSD 3-clause license[2] and based on the xUnit architecture.[3] Google Test is able to be compiled for a variety of POSIX and Microsoft Windows platforms, allowing unit-testing of C sources as well as C++ with minimal source modification.

Projects using Google Test

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

Related tools

Google Test UI is a test runner that runs test binary, allows to track progress via a progress bar, and displays a list of test failures. Google Test UI is written in C#.[7] Additionally, a feature-complete Visual Studio extension exists with Google Test Adapter.[8]

See also


  1. ^ Google Test v1.13.0 release notes, retrieved 2023-02-21
  2. ^ Google Test's repository, retrieved 2016-04-12, cites New BSD as license. The license file is at
  3. ^ A quick introduction to the Google C++ Testing Framework, Arpan Sen, IBM DeveloperWorks, 2010-05-11, retrieved 2016-04-12
  4. ^ Android Native tests
  5. ^ The ament_cmake Repository
  6. ^ Gromacs Testing Framework
  7. ^ Google Test UI retrieved 2016-04-12
  8. ^ Soltenborn, Christian (12 August 2022). "GoogleTestAdapter". GitHub.((cite web)): CS1 maint: url-status (link)

Further reading