Category "googletest"

GoogleTest EXPECT_CALL throws uninteresting call warning and returns 0 calls

I am trying to Mock an external library and test what APIs of the library are being called from my interfaces and I have come across a behavior (first time usin

VectorCast vs GTest for unit tests

I am a newbie at VectorCast. I have developed some unit tests with VectorCast. But I am still not confident with VectorCast(maybe, I am wrong:) ). For unit test

google mock - can I call EXPECT_CALL multiple times on same mock object?

If I call EXPECT_CALL twice on the same mock object in the same TEST_F . . . what happens? Are the expectations appended to the mock object or does the second

Injecting a Mock using registerConstructor

I've successfully set up a Mock for injection via fruit using .replace(get*Component).with(getMock*Component) like so: #include <gmock/gmock.h> #include

gtest - testing template class

I want to test a template class with gtest. I read about TYPED_TESTs in Google Test manual and looked at official example they reference, but still can't wrap m

Disable whole test case in gtest

How can one disable a complete test case in gtest? (all the tests in a test case, not just individual tests) The formatting proposed in the gtest doc is to org