我有多个班级的单元测试但崩溃了

时间:2018-06-13 05:35:05

标签: qt unit-testing

我有一个4级测试单元 我主要做以下事情:

#include <QtTest>
#include "CategoryTests.cpp"
#include "SerializationTests.cpp"
#include "TaskTests.cpp"
#include "TestTests.cpp"

int main(int argc, char** argv)
{
   int status = 0;
   {
       CategoryTests tc;
       status |= QTest::qExec(&tc, argc, argv);
   }
   {
       SerializationTests tc;
       status |= QTest::qExec(&tc, argc, argv);
   }
   {
       TaskTests tc;
       status |= QTest::qExec(&tc, argc, argv);
   }
   {
       TestTests tc;
       status |= QTest::qExec(&tc, argc, argv);
   }
   return status;
}

但由于某种原因,婴儿床弹出,我无法理解为什么。我请求你的帮助

enter image description here

0 个答案:

没有答案