mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-03 19:10:53 +01:00
Add QT test to tests
This commit is contained in:
48
tests/qttest/tst_mytest.cpp
Normal file
48
tests/qttest/tst_mytest.cpp
Normal file
@@ -0,0 +1,48 @@
|
||||
#include <QtTest>
|
||||
#include <QCoreApplication>
|
||||
|
||||
// add necessary includes here
|
||||
|
||||
class mytest : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
mytest();
|
||||
~mytest();
|
||||
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void cleanupTestCase();
|
||||
void test_case1();
|
||||
|
||||
};
|
||||
|
||||
mytest::mytest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
mytest::~mytest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void mytest::initTestCase()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void mytest::cleanupTestCase()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void mytest::test_case1()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QTEST_MAIN(mytest)
|
||||
|
||||
#include "tst_mytest.moc"
|
||||
Reference in New Issue
Block a user