Add tests skeleton subproject

This commit is contained in:
Andrew nuark G 2020-12-18 19:19:31 +07:00
parent 2f03f7e488
commit f474ab85af
3 changed files with 58 additions and 1 deletions

View file

@ -1,4 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += \
sea_transport
sea_transport \
st_test

9
st_test/st_test.pro Normal file
View file

@ -0,0 +1,9 @@
QT += testlib
QT -= gui
CONFIG += qt console warn_on depend_includepath testcase
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += tst_st_test.cpp

47
st_test/tst_st_test.cpp Normal file
View file

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