Projects / Google C++ Testing Framework

Google C++ Testing Framework

Google C++ Testing Framework is Google's framework for writing C++ tests on a variety of platforms. It is based on the xUnit architecture, and it 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.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  16 Apr 2010 21:35

    Release Notes: On systems that support pthreads, you can now safely invoke test assertions from multiple threads. Predicates used inside EXPECT_TRUE can now generate custom failure messages. You can now build Google Test into a DLL. Google Test now prints help when encountering flags meant for it that it can't recognize. An experimental CMake build script (requires CMake 2.6.4+) has been added. There are other improvements and bugfixes.

    •  02 Oct 2009 22:17

      Release Notes: The event listener API allows you to write plugins to make Google Test do interesting things. You can now shuffle the tests to reveal bad inter-test dependencies. The XML report is more compatible with JUnit and can be parsed by popular continuous build tools like Hudson. It works on a lot more platforms now. This release no longer depends on Boost.

      •  19 Mar 2009 04:27

        Release Notes: Death tests have been implemented on Windows, Cygwin, and Mac. You can use Google Test assertions in other testing frameworks. You can run disabled tests via --gtest_also_run_disabled_tests. There is a new --help flag for printing the usage. You can access Google Test flag values in user code. There is a new script that packs Google Test into one .h and one .cc file for easy deployment. This release supports distributing of test functions to multiple machines (requires support from the test runner). There are bugfixes and an implementation cleanup.

        •  19 Mar 2009 00:38

          Release Notes: Death tests have been implemented on Windows, Cygwin, and Mac. You can use Google Test assertions in other testing frameworks. You can run disabled tests via --gtest_also_run_disabled_tests. There is a new --help flag for printing the usage. You can access Google Test flag values in user code. There is a new script that packs Google Test into one .h and one .cc file for easy deployment. This release supports distributing test functions to multiple machines (requires support from the test runner). There are bugfixes and implementation clean-up.

          •  02 Dec 2008 00:17

            Release Notes: Value-parameterized tests and failure catching assertions have been implemented. The XML report format has been changed to match that of JUnit/Ant's. Test atrgets have been added to the XCode project. A SConscript build file has been added to build Google Test with SCons. An src/gtest-all.cc file has been added for building Google Test from a single file. Compatibility issues on Solaris and z/OS have been fixed. Tests on systems with Python 2.3 (such as Mac OS X 10.3) have been enabled. Multiple bugs have been fixed.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.