Google Test
Google Test: Open-Source C++ Testing Framework
Google Test is an open-source testing framework for C++ created by Google. It allows writing unit tests and mocks which integrate with build systems and Continuous Integration tools to automate testing workflows.
What is Google Test?
Google Test is an open-source testing framework developed by Google for testing C++ applications. It allows writing small test cases called unit tests that each test different functionalities in the code base, and then executing these test cases and generating detailed test reports.
Key features of Google Test include:
- Writing test fixtures to allow setup/teardown of test environment
- Various assertions like ASSERT_EQ, EXPECT_TRUE to test conditions
- Test parameterization for running tests with different input
- Global test setup/teardown
- Value parameterized tests
- Death tests for testing exception handling
- Supports testing private members using FRIEND_TEST
- Integrates seamlessly with build systems like CMake
- XML test report generation
- Multi-platform support for Linux, Windows, MacOS etc.
Google Test requires understanding of concepts like assertions, test suites, test cases and test fixtures. It is easy to set up and integrate with Continuous Integration workflows. Overall it is one of the most popular and capable testing frameworks available for C++ applications.
Google Test Features
Features
- Unit testing framework for C++
- Supports automatic test discovery
- Death tests for catching leaks and crashes
- Type-parameterized tests
- Value-parameterized tests
- User-defined assertions
- XML test report generation
- Multi-platform support
Pricing
- Open Source
Pros
Cons
Official Links
Reviews & Ratings
Login to ReviewThe Best Google Test Alternatives
View all Google Test alternatives with detailed comparison →
Top Development and Testing and other similar apps like Google Test
CPPUnit
UquoniTest
Criterion