Misplaced Pages

Google Test

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
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, third-party 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 Misplaced Pages. See Misplaced Pages'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. (October 2019) (Learn how and when to remove this message)
(Learn how and when to remove this message)
Google Test
Developer(s)Google
Stable release1.14.0 / August 2, 2023; 16 months ago (2023-08-02)
Repositorygithub.com/google/googletest/
Written inC++
Operating systemLinux, Microsoft Windows, macOS
TypeUnit testing tool
LicenseBSD 3-clauses
Websitegoogle.github.io/googletest/ Edit this on Wikidata

Google Test, often referred to as gtest, is a testing framework utilized to conduct unit testing in the C++ programming language. This library operates under the terms of the BSD 3-clause license. Google Test is based on the xUnit architecture, a systematic methodology for assessing software components.

Google Test can be compiled for a diverse range of computer systems, encompassing those employing POSIX, a set of standard operating system interfaces, as well as the Microsoft Windows platform. This adaptability facilitates the execution of unit tests on both C and C++ codebases, with minimal alterations required in the source code.

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 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 functionality. It visually presents the testing progress through a progress bar and displays a list of identified issues or 'test failures'. The tool is primarily written in C#. A Visual Studio extension, Google Test Adapter, complements its functionality within the Visual Studio environment.

See also

References

  1. Google Test v1.14.0 release notes, retrieved 2023-11-29
  2. 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
  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.

Further reading

  • Whittaker, James (2012). How Google Tests Software. Boston, Massachusetts: Pearson Education. ISBN 978-0-321-80302-3.

External links

Categories: