Top "Googletest" questions

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

Google Test - Test that a string does not contain a string

Using Google Test, I need a way to verify that a string that was returned by my class under test …

regex googletest googlemock
Simplest example of using Google C++ Testing Framework with CMake

I have a very simple C++ library (one header file, one .cpp file). I want to write unit tests for …

c++ unit-testing cmake googletest
Google test - before class

I'm running google test. I need something like Before class. I have the SetUp() and TearDown() functions, but they run …

c++ unit-testing googletest
How to mock a class with both virtual and non-virtual methods using Google Mock?

I have a class I wish to Mock using Google Mock. My class has BOTH non-virtual and virtual methods. I've …

c++ unit-testing googletest googlemock
CMake: How to specify directory where ctest should look for executables?

I wanted to integrate ctest to a c++/c project. I use google tests to write unit tests. Relevant part …

c++ cmake googletest ctest
How to mock method with optional parameter in Google Mock?

How to mock a method with optional parameter in Google Mock? For example: class A { public: void set_enable( bool …

c++ mocking googletest googlemock
Where can I find comprehensive documentation on Google Test?

A Google search yields the GitHub page for Google Test. I'm finding many links around the web to https://github.…

googletest
Google Mock : Setting argument in EXPECT_CALL

I am trying to set a class member function parameter value in Google Mock, but I get build errors and …

c++ unit-testing oop googletest googlemock
linking error when building Google test on mac (commandline)

I am currently trying to build some test code that uses Google C++ Test framework but I keep getting an …

c++ testing build linker googletest
GoogleTest 1.6 with Cygwin 1.7 compile error: 'fileno' was not declared in this scope

GoogleTest 1.6 with Cygwin 1.7: 'fileno' was not declared in this scope Error message when building a simple test on Factorial() function …

c++ eclipse cygwin googletest