This is an example how to use Catch2 with GMock.
It also contains some example how to use DOCTest with GMock.
You might have to call testing::Mock::VerifyAndClearExpectations(mockPtr)
at the end of every SECTION
.
Or use MockScopeGuard.hpp
Start here.
This is an experimental repository. It works for me, but not overly tested. Feel free to improve it by creating issue or PR.
The integration works with VSCode Catch2, Google Test and DOCest Explorer.
There is a DOCTest skeleton too.