Startingh UnitTesting

This commit is contained in:
Jonas Mucke
2020-01-09 21:07:36 +01:00
parent 2ae679099b
commit 7eeee52fb4
2 changed files with 106 additions and 0 deletions

49
src/mainUnitTest.cpp Normal file
View File

@@ -0,0 +1,49 @@
#include <QtTest>
// add necessary includes here
class UnitTest : public QObject
{
Q_OBJECT
public:
UnitTest();
~UnitTest();
private slots:
void initTestCase();
void cleanupTestCase();
void test_case1();
};
UnitTest::UnitTest()
{
}
UnitTest::~UnitTest()
{
}
void UnitTest::initTestCase()
{
}
void UnitTest::cleanupTestCase()
{
}
void UnitTest::test_case1()
{
QBENCHMARK {
QVERIFY(1 == 1);
}
}
QTEST_APPLESS_MAIN(UnitTest)
#include "tst_unittest.moc"