NiceMock vs StrickMock

5,657 views
Skip to first unread message

Brenda Martis

unread,
Apr 12, 2016, 9:40:25 PM4/12/16
to Google C++ Mocking Framework
Can someone explain difference between nicemock and strickmock?

Alex Shaver

unread,
Apr 13, 2016, 11:03:49 AM4/13/16
to Google C++ Mocking Framework
Before moving to github, the documentation used to have a lot better table of contents/indexing. This is what you're looking for:
https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#the-nice-the-strict-and-the-naggy

tl;dr: nice mocks suppress warnings about unexpected calls, strict mocks fail tests on unexpected calls. That's how I saw them at least.
Reply all
Reply to author
Forward
0 new messages