Created
July 26, 2016 18:24
-
-
Save mitchcurtis/0cb2970b3534637a4a64f89d90a17f48 to your computer and use it in GitHub Desktop.
C++ auto test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtTest> | |
class Untitled : public QObject | |
{ | |
Q_OBJECT | |
public: | |
Untitled(); | |
private Q_SLOTS: | |
void testCase1(); | |
}; | |
Untitled::Untitled() | |
{ | |
} | |
void Untitled::testCase1() | |
{ | |
} | |
QTEST_APPLESS_MAIN(Untitled) | |
#include "tst_untitled.moc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QT += testlib | |
QT -= gui | |
TARGET = tst_untitled | |
CONFIG += console | |
CONFIG -= app_bundle | |
TEMPLATE = app | |
SOURCES += \ | |
tst_untitled.cpp | |
DEFINES += SRCDIR=\\\"$$PWD/\\\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment