About this project
GoogleTest is Google's C++ test framework, formed by merging the formerly separate GoogleTest and GoogleMock projects. It is an xUnit-based unit testing framework that automatically discovers and runs tests, so tests do not need to be manually registered.
Key capabilities described in the README include a rich set of assertions (equality, inequality, exceptions, and more), user-defined assertions, death tests that verify how code exits, and support for both fatal and non-fatal failures so a test run can continue after a failure. It also supports value-parameterized tests that run repeatedly with different inputs and type-parameterized tests that run with different data types. Multiple options exist for running tests, including running individual tests, running tests in a specific order, and running tests in parallel.
Documentation is hosted on GitHub Pages, with the GoogleTest Primer recommended as a starting point. Release 1.18.0 is available, and the 1.18.x branch requires at least C++17. The project follows Google's Foundational C++ Support Policy for supported compilers, platforms, and build tools. The README notes that Google uses internal systems for continuous integration and that a dependency on Abseil is planned.
Notable users cited in the README include the Chromium projects, the LLVM compiler, Protocol Buffers, and the OpenCV computer vision library. Related open-source projects include GTest Runner (a Qt5 test runner and GUI), GoogleTest UI (a C# test runner), GTest TAP Listener (TAP protocol output), gtest-parallel (parallel test execution), and VS Code extensions such as GoogleTest Adapter and C++ TestMate. Cornichon is mentioned as a Gherkin DSL parser that generates GoogleTest stub code. Contribution details are in CONTRIBUTING.md.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.