This is an example how to use Catch2 with GMock.
It also contains some example how to use DOCTest with GMock.
Note: You might have to call testing::Mock::VerifyAndClearExpectations(mockPtr)
at the end of every SECTION
.
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 doctest Explorer.
There is a DOCTest skeleton too, but havent't finished the example yet.