Google Test

Google Test is Google's C++ testing framework.
Download

Google Test Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Google
  • Publisher web site:
  • http://code.google.com/

Google Test Tags


Google Test Description

Google Test is Google's C++ testing framework. Google Test is Google's C++ testing framework.Google's framework for writing C++ tests on a variety of platforms (Linux, Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit architecture. Supports automatic test discovery, a rich set of assertions, user-defined assertions, death tests, fatal and non-fatal failures, various options for running the tests, and XML test report generation.Requirements:· GNU-compatible Make or "gmake"· POSIX-standard shell· POSIX(-2) Regular Expressions (regex.h)· A C++98 standards compliant compiler· Automake >= 1.9· Autoconf >= 2.59· Libtool / Libtoolize· Python >= 2.4Building the source:There are two primary options for building the source at this point: build it inside the source code tree, or in a separate directory. We recommend building in a separate directory as that tends to produce both more consistent results and be easier to clean up should anything go wrong, but both patterns are supported. The only hard restriction is that while the build directory can be a subdirectory of the source directory, the opposite is not possible and will result in errors. Once you have selected where you wish to build Google Test, create the directory if necessary, and enter it. The following steps apply for either approach by simply substituting the shell variable SRCDIR with "." for building inside the source directory, and the relative path to the source directory otherwise. $ ${SRCDIR}/configure # Standard GNU configure script, --help for more info $ make # Standard makefile following GNU conventions $ make check # Builds and runs all tests - all should passOther programs will only be able to use Google Test's functionality if you install it in a location which they can access, in Linux this is typically under '/usr/local'. The following command will install all of the Google Test libraries, public headers, and utilities necessary for other programs and libraries to leverage it: $ sudo make install # Not necessary, but allows use by other programsTODO(chandlerc@google.com): This section needs to be expanded when the 'gtest-config' script is finished and Autoconf macro's are provided (or not provided) in order to properly reflect the process for other programs to locate, include, and link against Google Test.Finally, should you need to remove Google Test from your system after having installed it, run the following command, and it will back out its changes. However, note carefully that you must run this command on the *same* Google Test build that you ran the install from, or the results are not predictable. If you install Google Test on your system, and are working from a VCS checkout, make sure you run this *before* updating your checkout of the source in order to uninstall the same version which you installed. $ sudo make uninstall # Must be run against the exact same build as "install"


Google Test Related Software