googletest
CMake: how to create a CMakeLists.txt that runs ./configure once?
How do I create a CMakeLists.txt for gmock to configure only once? I tried: ADD_CUSTOM_TARGET( gmock DEPENDS ${CMAKE_CURRENT_LIST_DIR}/gmock-1.6.0/lib/.libs/libgmock.a COMMAND cd ${CMAKE_CURRENT_LIS[详细]
2023-04-13 06:08 分类:问答googletest: construct fixtures with parameters?
I have two implementations of an algorithm working on arrays and returning a single value, a slow and naive but correct method A and an optimized method B that may be buggy at corners of the input par[详细]
2023-04-10 07:04 分类:问答error: 'int main(int, char**)' previously defined here in C++
I\'m implementing gtest now, and it gives me an error : main previously defined here. Here\'s utest.cpp[详细]
2023-04-08 09:59 分类:问答Google Mock giving compile error when attempting to specify a return value
I\'m using Google Test and Google Mock for my C++/Qt application. I\'ve been having great success with this setup until just now when I tried this:[详细]
2023-04-08 00:28 分类:问答Separate test cases across multiple files in google test
I\'m new in google test C++ framework. It\'s quite开发者_如何学Python easy to use but I\'m wondering how to separate the cases into multiple test files. What is the best way?[详细]
2023-04-05 13:12 分类:问答Is there something similar to Igloo's LastException in GoogleTest?
I\'m taking a look at TDD using GoogleTest and I was doing this kata: http://osherove.com/tdd-kata-1.[详细]
2023-04-03 18:02 分类:问答Format for cross language common test data
I\'m currently working on the C++ side of a font library in both C++ and Java. We would like to generate test data from multiple fonts automatically and we\'re using 开发者_开发技巧Google Test and JU[详细]
2023-04-01 18:23 分类:问答How could I use google test on windows application based on message queue?
I want to use google test for my program that has timer functionality inside. The timer is implement by windows SetTimer(), and there is a message queue in the main() to process the timeout message.[详细]
2023-03-30 01:53 分类:问答How to suppress runtime errors caused by assert() using google test?
I am using google test in a C++ project. Some functions use assert() in order to check for invalid input parameters. I already read about Death-Tests (What are Google Test, Death Tests) and started us[详细]
2023-03-19 18:26 分类:问答Configure gtest to show failed test only in console
Is there an option to show only failed tests? I had to switch to use Guita开发者_运维知识库r to achieve this, but I miss command line tool.I ran into the same issue - as I\'m sure many other people ha[详细]
2023-03-18 08:57 分类:问答