mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 03:40:31 +02:00
Startingh UnitTesting
This commit is contained in:
49
src/mainUnitTest.cpp
Normal file
49
src/mainUnitTest.cpp
Normal 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"
|
||||
Reference in New Issue
Block a user