Google Test

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Message box/ambox.css has no content.Page Template:Multiple issues/styles.css has no content.

Page Module:Infobox/styles.css has no content.

Google Test
[[Programmer|DeveloperTemplate:Pluralize from text]]Google
Template:Infobox software/simple
Written inC++
EnginePage Template:Plainlist/styles.css has no content.Template:EditAtWikidata
Operating systemWindows, Linux, macOS
TypeUnit testing tool
LicenseBSD 3-clause
WebsiteScript error: No such module "WikidataIB".
Repositorygithub.com/google/googletest/

Script error: No such module "Check for conflicting parameters".

Google Test, often written as GoogleTest and referred to as gtest, is a specialized 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 a diverse range of 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 adaptability facilitates executing unit tests on both C and C++ codebases, with minimal alterations needed in the source code.[citation needed]

Projects using Google Test

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

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, complements its functions within the Visual Studio environment.[8]

See also

Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

References

Page Template:Reflist/styles.css has no content.

  1. ^ Google Test v1.17.0 release notes, retrieved 2025-10-14
  2. ^ A quick introduction to the Google C++ Testing Framework, Arpan Sen, IBM DeveloperWorks, 2010-05-11, retrieved 2016-04-12
  3. ^ 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
  4. ^ Page Module:Citation/CS1/styles.css has no content."Android Native tests". Archived from the original on 2021-01-20. Retrieved 2021-02-05.
  5. ^ The ament_cmake Repository
  6. ^ Gromacs Testing Framework
  7. ^ Google Test UI retrieved 2016-04-12
  8. ^ Page Module:Citation/CS1/styles.css has no content.Soltenborn, Christian (12 August 2022). "GoogleTestAdapter". GitHub.

Further reading