gtest首先运行死亡测试

时间:2016-10-28 17:14:49

标签: c++ googletest

我正在阅读Test cases with a name ending in "DeathTest" are run before all other tests. 。这是否意味着如果我有两个测试装置都进行了死亡测试,那两个测试装置中的那些死亡测试将在这两个测试类中的所有其他测试之前运行?

Clarification:
UtTestName.cpp:
TEST(Testname, Test1_DeathTest)
{
  //test things
}
TEST(Testname, Test2)
{
  //test things
}
UtTestNameOther.cpp:

TEST(Testname2, Test3_DeathTest)
{
  //test things
}
TEST(Testname2, Test4)
{
  //test things
}

这两个cpp文件中的DeathTest案例是否会在其他cpp文件中的Test2和Test4之前运行?

0 个答案:

没有答案
相关问题