Skip to content

matepek/catch2-with-gmock

Repository files navigation

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.

About

Exmaple of using Catch2 with GMock

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published