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 placed and are useful. Is there a way to catch an assert in Google test?[详细]
2023-01-16 18:50 分类:问答What are Google Test, Death Tests
I saw the documentation of that feature is seem pretty major since it\'s in Google Test overview features and detailed in:[详细]
2023-01-16 02:42 分类:问答Visual Studio and Google Test: Forcing Re-Run of Test Project When Dependencies Change
I have a set of Google Test-based unit tests for a native C++ DLL I\'m developing.The DLL is in its own project, and the test project is dependent upon it.The test project has a Post-Build Event scrip[详细]
2023-01-13 06:45 分类:问答Difference between double comparisons in gtest (C++) and nunit (C#)
I have done porting of a c++ project with gtest tests to a c# project having an nunit test. Now I encounter problems with floating point precision.[详细]
2023-01-13 04:32 分类:问答Google Test Fixtures
I\'m trying to understand how the Google Test Fixtures work. Say I have the following code: class PhraseTest : public ::testing::Test[详细]
2023-01-12 22:54 分类:问答Passing a typename and string to parameterized test using google test
Is there a way of passing both a type and a string to a parametrized test using google\'s test. I would like to do:[详细]
2023-01-07 03:20 分类:问答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 MyFixtureTest : public ::testing::Test {[详细]
2023-01-05 11:52 分类:问答Use Google Test from Qt in Windows
I have a simple test file, TestMe.cpp: #include <gtest/gtest.h> TEST(MyTest, SomeTest) { EXPECT_EQ(1, 1);[详细]
2022-12-29 04:38 分类:问答How do I prevent qFatal() from aborting the application?
My Qt application uses Q_ASSERT_X, which calls qFatal(), which (by default) aborts the application. That\'s great for the application, but I\'d like to suppress that behavior when unit testing the app[详细]
2022-12-28 23:37 分类:问答How to migrate Cppunit tests into GoogleTest?
I have a bunch of module tests written in CPPun开发者_高级运维it with some mocks created by hand. I am looking for a way to migrate them to GoogleTest as smoothly as possible.[详细]
2022-12-28 09:25 分类:问答
加载中,请稍侯......