Top "Googletest" questions

Google's C++ testing framework based on xUnit that runs on multiple platforms.

undefined reference to `pthread_key_create' (linker error)

I have downloaded gtest 1.7.0 sources from here: https://code.google.com/p/googletest/downloads/list and build the gtest .a …

c++ googletest
Google Mock unit testing static methods c++

I just started working on unit testing (using BOOST framework for testing, but for mocks I have to use Google …

c++ googletest googlemock
How to clone and integrate external (from git) cmake project into local one

I faced with a problem when I was trying to use Google Test. There are lot of manuals on how …

c++ git cmake googletest
Can Googletest value-parameterized with multiple, different types of parameters match mbUnit flexibility?

I'd like to write C++ Google tests which can use value-parameterized tests with multiple parameters of different data types, ideally …

c++ unit-testing googletest
Can gmock be used for stubbing C functions?

I am new to gmock, so I want to know how can I stub simple C function called in a …

c unit-testing googletest gmock
Google Test in Visual Studio 2012

I am trying to get started with unit testing. I downloaded the latest build of gtest, and extracted it to …

c++ visual-c++ c++11 visual-studio-2012 googletest
Comparing to a hardcoded string with quotes in C++

I'm writing a c++ function to generate XML using TinyXML. I'd like to verify that a (relatively small) tree produced …

c++ googletest tinyxml
Mocking Parametrized Constructor using Gmock

I have class to be mocked but it does not have a default constructor. I cannot change the source code, …

c++ constructor mocking googletest gmock
SetUp vs Constructor in Test Fixture

Why does a test fixture have a SetUp method in Google Test? Isn't the Constructor effectively the same thing? Likewise …

c++ googletest
Google mock ByRef method

I have a class that takes a boolean as a reference parameter and returns an integer: class Foo { public: Bar …

c++ googletest gmock