GTest
Installation in Ubuntu
Usage in CMake
Tutorial
ASSERT_*
versions generate fatal failures when they fail, and abort the current function.EXPECT_*
versions generate nonfatal failures, which don’t abort the current function.Test results will show up when you run the GTest executable after compilation.
GMock
When you write a prototype or test, often it’s not feasible or wise to rely on real objects entirely. A mock object implements the same interface as a real object, but lets you specify at run time how it will be used and what it should do.
GMock has been merged into GTest project in 2019.
Github Repository: https://github.com/google/googlemock
Last updated