googletest

C++ testing and mocking framework for unit tests

brewmacoslinux
Try with needOr install directly
Source

About

Google Testing and Mocking Framework

Commands

googletest

Examples

Link googletest library in CMakeLists.txt for C++ projects$ find_package(GTest REQUIRED) target_link_libraries(my_test GTest::GTest GTest::Main)
Run compiled test executable with verbose output$ ./my_test --gtest_verbose
Run specific test cases by filter pattern$ ./my_test --gtest_filter=TestFixture.TestName