Top "Googletest" questions

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

How to build some project configurations with msbuild

The gtest's msvc directory has the gtest project file, and opening it with Visual Studio enables me to select the …

visual-studio msbuild googletest
Google Test Fixtures

I'm trying to understand how the Google Test Fixtures work. Say I have the following code: class PhraseTest : public ::testing::…

c++ testing googletest
What is the difference between gtest and gmock?

I'm trying to understand the purpose of google-mock, Google's C++ mocking framework. I have already worked with gtest earlier, but …

c++ googletest googlemock
Error with EXPECT_EQ for sum of double or float

I am unable to understand why the test case failed in case of summing double numbers or floats. It works …

c++ unit-testing floating-point googletest
How to catch an assert with Google test?

I'm programming some unit test with the Google test framework. But I want to check whether some asserts are well …

c++ unit-testing googletest assertions
Uninteresting mock function call bla() && Expected: to be called at least once bla()?

I've written a small test with a mocked class. When I run it, first I get the warning that an …

c++ mocking googletest googlemock
Google Test: Parameterized tests which use an existing test fixture class?

I have a test fixture class which is currently used by many tests. #include <gtest/gtest.h> class …

c++ unit-testing googletest
What unit-testing framework should I use for Qt?

I am just starting up a new project that needs some cross-platform GUI, and we have chosen Qt as the …

unit-testing qt googletest qtestlib qttest
CMake + GoogleTest

I just downloaded googletest, generated its makefile with CMake and built it. Now, I need to use it in my …

cmake googletest
How to make google-test classes friends with my classes?

I heard there is a possibility to enable google-test TestCase classes friends to my classes, thus enabling tests to access …

c++ friend googletest