Google Test
Google Test, often referred to as gtest, is a specialized library 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:
- Android Open Source Project operating system
- Chromium projects (behind the Chrome browser and ChromeOS)
- LLVM compiler
- Protocol Buffers (Google's data interchange format)
- OpenCV computer vision library
- Robot Operating System
- Gromacs molecular dynamics simulation package
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
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