Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 824 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 824 Bytes

Catch2 with GMock

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.

Remark

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.