Revision b9d50b0d
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
tests/em/tst_querybuildertest.cpp | ||
---|---|---|
#include <QString>
|
||
#include <QtTest>
|
||
|
||
class QuerybuilderTest : public QObject
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
QuerybuilderTest();
|
||
|
||
private Q_SLOTS:
|
||
void initTestCase();
|
||
void cleanupTestCase();
|
||
void testCase1_data();
|
||
void testCase1();
|
||
};
|
||
|
||
QuerybuilderTest::QuerybuilderTest()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::initTestCase()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::cleanupTestCase()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::testCase1_data()
|
||
{
|
||
QTest::addColumn<QString>("data");
|
||
QTest::newRow("0") << QString();
|
||
}
|
||
|
||
void QuerybuilderTest::testCase1()
|
||
{
|
||
QFETCH(QString, data);
|
||
QVERIFY2(true, "Failure");
|
||
}
|
||
|
||
QTEST_APPLESS_MAIN(QuerybuilderTest)
|
||
|
||
#include "tst_querybuildertest.moc"
|
tests/querybuilder/querybuilder.pro | ||
---|---|---|
#-------------------------------------------------
|
||
#
|
||
# Project created by QtCreator 2015-10-26T13:13:18
|
||
#
|
||
#-------------------------------------------------
|
||
|
||
QT += sql testlib
|
||
|
||
QT -= gui
|
||
|
||
TARGET = tst_querybuildertest
|
||
CONFIG += console
|
||
CONFIG -= app_bundle
|
||
|
||
TEMPLATE = app
|
||
|
||
|
||
SOURCES += tst_querybuildertest.cpp
|
||
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
tests/querybuilder/tst_querybuildertest.cpp | ||
---|---|---|
#include <QString>
|
||
#include <QtTest>
|
||
|
||
class QuerybuilderTest : public QObject
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
QuerybuilderTest();
|
||
|
||
private Q_SLOTS:
|
||
void initTestCase();
|
||
void cleanupTestCase();
|
||
void testCase1_data();
|
||
void testCase1();
|
||
};
|
||
|
||
QuerybuilderTest::QuerybuilderTest()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::initTestCase()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::cleanupTestCase()
|
||
{
|
||
}
|
||
|
||
void QuerybuilderTest::testCase1_data()
|
||
{
|
||
QTest::addColumn<QString>("data");
|
||
QTest::newRow("0") << QString();
|
||
}
|
||
|
||
void QuerybuilderTest::testCase1()
|
||
{
|
||
QFETCH(QString, data);
|
||
QVERIFY2(true, "Failure");
|
||
}
|
||
|
||
QTEST_APPLESS_MAIN(QuerybuilderTest)
|
||
|
||
#include "tst_querybuildertest.moc"
|
Auch abrufbar als: Unified diff
moved querybuildertest to em project cause em and querybuilder are
directly associated