GoogleTest is a popular open-source unit testing and mocking framework for C++. It provides a rich set of assertions, mocks, and utilities for creating tests for modern C++ code. For more details, see https://github.com/google/googletest.
C/C++test CT includes an integrated version of the GoogleTest framework, based on GoogleTest version 1.17.0, located at:
<INSTALL_DIR>/googletest/googletest.zip
Accessing the Documentation
Documentation for the integrated GoogleTest is available inside the googletest.zip package.
To access the documentation:
- Extract the contents of
<INSTALL_DIR>/googletest/googletest.zip. - Go to the
docssubfolder in the extracted directory. - Browse the documentation files (in Markdown format).
Using GoogleTest on Safety-Related Software
The integrated GoogleTest framework can be used for developing functional safety software (in selected build environments). Please contact Parasoft for details.
See also: Using C/C++test CT on Safety-Related Software.
When using C/C++test CT with GoogleTest for safety-related software, you must use the GoogleTest version provided with C/C++test CT.
Related topics
- See Integrating GoogleTest with C++ Projects for information on how to integrate the GoogleTest framework provided with C/C++test with your project.
- See Collecting Code Coverage for information on how to collect code coverage from your application under test.
- See Configuring Test Traceability Associations for information on how to associate GoogleTest test cases with development artifacts, such as requirements or test definitions.