Skip to content

Instantly share code, notes, and snippets.

@mitchcurtis
Created July 26, 2016 18:24
Show Gist options
  • Save mitchcurtis/0cb2970b3534637a4a64f89d90a17f48 to your computer and use it in GitHub Desktop.
Save mitchcurtis/0cb2970b3534637a4a64f89d90a17f48 to your computer and use it in GitHub Desktop.
C++ auto test
#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"
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