Google Test

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Google Test
Developer(s)Google
Stable release
1.10.0 / October 3, 2019; 8 months ago (2019-10-03)
Repositorygithub.com/google/googletest/
Written inC++
Operating systemLinux, Microsoft Windows, macOS
TypeUnit testing tool
LicenseBSD 3-clauses

Google Test (also known as gtest for e.g. the ROS environment[1]) is a unit testing library for the C++ programming language, based on the xUnit architecture.[2] The library is released under the BSD 3-clause license.[3] It can be compiled for a variety of POSIX and Windows platforms, allowing unit-testing of C sources as well as C++ with minimal source modification.[vague] The tests themselves could be run one at a time, or even be called to run all at once. This makes the debugging process very specific.[clarification needed]


Projects using Google Test[edit]

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

Related tools[edit]

Google Test UI is test runner that runs one's test binary, allows one to track its progress via a progress bar, and displays a list of test failures. Clicking on one shows failure text. Google Test UI is written in C#.[5] Additionally, a feature-complete Visual Studio extension exists with Google Test Adapter.[6]

See also[edit]

References[edit]

  1. ^ Google Test (gtest) in the wiki of ros.org
  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. ^ Gromacs Testing Framework
  5. ^ Google Test UI retrieved 2016-04-12
  6. ^ [1]

Further reading[edit]

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

External links[edit]