Google Test

Short description: C++ testing framework by Google

Google TestDeveloper(s)| Google

|

Stable release|

1.14.0[1] / August 2, 2023; 2 years ago (2023-08-02)

Repository| github.com/google/googletest/
Written in| C++
Operating system| Linux, Microsoft Windows, macOS
Type| Unit testing tool
License| BSD 3-clauses

Google Test, often referred to as gtest, is a specialized library utilized for the purpose of conducting unit testing within the context of the C++ programming language. This library operates under the terms of the BSD 3-clause license,[2] which dictates the terms of its usage and distribution. Google Test is structured based on the xUnit architecture, a systematic methodology for assessing software components.[3]

Google Test is able to 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 original source code[citation needed].

## Contents

* 1 Projects using Google Test
* 2 Related tools
* 3 See also
* 4 References
* 5 Further reading
* 6 External links

## Projects using Google Test

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

Google Test UI is a software tool for testing computer programs. It serves as a test runner, employing a 'test binary' 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#.[7] A Visual Studio extension, Google Test Adapter, complements its functionality within the Visual Studio environment.[8] In the domain of software testing, a "test binary" is a compiled program responsible for executing tests and analyzing their results.

## See also

* List of unit testing frameworks
* CppUnit

## 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". https://github.com/csoltenborn/GoogleTestAdapter.

## Further reading

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

## External links

* Google Test
* 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

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Google Test. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Google_Test&oldid=772407"