Google Test

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Google Test
DeveloperGoogle
Stable release
1.17.0[1] / April 30, 2025; 11 months ago (2025-04-30)
Repositorygithub.com/google/googletest/
Written inC++
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemLinux, Microsoft Windows, macOS
    TypeUnit testing tool
    LicenseBSD 3-clauses

    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.[2] Google Test is based on the xUnit architecture, a systematic methodology for assessing software components.[3]

    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[citation needed].

    Projects using Google Test

    [edit | edit source]

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

    [edit | edit source]

    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#.[7] A Visual Studio extension, Google Test Adapter, complements its functionality within the Visual Studio environment.[8]

    See also

    [edit | edit source]

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

    References

    [edit | edit source]
    1. ^ Google Test v1.17.0 release notes, retrieved 2025-10-14
    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. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]