Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b9d50b0d

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

  • ID b9d50b0d2a22c0cdddae08833e4a886cd8d11d29
  • Vorgänger 4750b097
  • Nachfolger f8b8663b

moved querybuildertest to em project cause em and querybuilder are
directly associated

Unterschiede anzeigen:

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