googletest
Working with Existing C++ code tested under Google Test and adding Qt
I am working on a program written in C++ using some c++0x features in Linux (Ubuntu).I have written a bunch of tests in Google Test.I am using g++ and plain makefiles which generate dependencies.[详细]
2023-02-24 12:24 分类:问答Google Test C++: Is there a way to read the current console output in a test?
Let us assume I have a to be tested class that has the following method: void MyClass::sayHello() { std::cout << \"Hello\";[详细]
2023-02-22 07:26 分类:问答google test EXPECT_EQ and boost::make_recursive_variant
I have a boost recursive variant as below.When I开发者_StackOverflow中文版 compare two recursive variant object using assert, it works fine but with EXPECT_EQ, it gives compile error.[详细]
2023-02-20 06:16 分类:问答Does Mock Objects in C++ Always Requires Virtual Methods or Templates?
Suppose I have classes class Inner { public: void doSomething(); }; class Outer { public: Outer(Inner *inner);// Dependency injection.[详细]
2023-02-19 08:53 分类:问答Is Google Test OK for testing C code?
So I\'ve come to like and enjoy using Google Test for a C++ project I\'m involved in.I开发者_Python百科\'m just bringing up a new project that will be straight C (a library) and so far can\'t see any[详细]
2023-02-18 11:27 分类:问答How do I set up gtest in Windows Netbeans?
I\'ve looked at the Netbeans forums, gtest wiki & around here & I can\'t seem to find a way to get gtest working right in Netbeans (6.9.1, Windows 7x64). There\'s no problem with my #include o[详细]
2023-02-16 17:11 分类:问答What's the way to access argc and argv inside of a test case in Google Test framework?
I’m using Google Test to test my C++ project. Some cases, however, require access to argc and argv to load the required data.[详细]
2023-02-15 20:26 分类:问答Googlemock: How to verify elements in an array in an object?
I have a small class: struct Command { uint8_t cmdId; uint8_t len; uint8_t payload[MAX_PAYLOAD]; }; And I want to verify only the first two elements of the payload using a googlemock expectation.I[详细]
2023-02-13 15:33 分类:问答gTest and multiple main()
I have an Eclipse project. All testcases are in one *.cpp file. The problem is that this way I end up with two main() functions. One for the app itself and one for the testcases. And Eclipse, of cours[详细]
2023-02-13 04:44 分类:问答Integrating 'google test' and 'boost program options'
I have a program that uses google test, and boost program options library for parsing options. The problem is that google test also has it\'s own option parsers, so I need to filter out before giving[详细]
2023-02-11 07:17 分类:问答
加载中,请稍侯......