GUI: Fix tests

This commit is contained in:
Daniel Marjamäki 2019-04-19 07:39:43 +02:00
parent 7799ed4243
commit fee01099a9
18 changed files with 13 additions and 12 deletions

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include <QFile> #include <QFile>
#include <QString> #include <QString>

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
#include "errorlogger.h" #include "errorlogger.h"

View File

@ -5,6 +5,8 @@ INCLUDEPATH += .
OBJECTS_DIR = ../../build OBJECTS_DIR = ../../build
MOC_DIR = ../../build MOC_DIR = ../../build
QT += testlib
include(../../common.pri) include(../../common.pri)
DEFINES += SRCDIR=\\\"$$PWD\\\" DEFINES += SRCDIR=\\\"$$PWD\\\"

View File

@ -4,6 +4,7 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
OBJECTS_DIR = ../build OBJECTS_DIR = ../build
MOC_DIR = ../build MOC_DIR = ../build
QT += testlib
include(../common.pri) include(../common.pri)

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include <QDir> #include <QDir>
#include <QString> #include <QString>

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
class TestFileList: public QObject { class TestFileList: public QObject {

View File

@ -4,6 +4,7 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
OBJECTS_DIR = ../build OBJECTS_DIR = ../build
MOC_DIR = ../build MOC_DIR = ../build
QT += widgets testlib
include(../common.pri) include(../common.pri)

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include "testprojectfile.h" #include "testprojectfile.h"
#include "projectfile.h" #include "projectfile.h"

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
class TestProjectFile: public QObject { class TestProjectFile: public QObject {

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include "testtranslationhandler.h" #include "testtranslationhandler.h"
#include "translationhandler.h" #include "translationhandler.h"

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
class TestTranslationHandler: public QObject { class TestTranslationHandler: public QObject {

View File

@ -4,6 +4,7 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
OBJECTS_DIR = ../build OBJECTS_DIR = ../build
MOC_DIR = ../build MOC_DIR = ../build
QT += widgets testlib
include(../common.pri) include(../common.pri)

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include "testxmlreport.h" #include "testxmlreport.h"
#include "xmlreport.h" #include "xmlreport.h"

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
class TestXmlReport: public QObject { class TestXmlReport: public QObject {

View File

@ -4,6 +4,7 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
OBJECTS_DIR = ../build OBJECTS_DIR = ../build
MOC_DIR = ../build MOC_DIR = ../build
QT += testlib
include(../common.pri) include(../common.pri)

View File

@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest>
#include <QObject> #include <QObject>
#include "testxmlreportv2.h" #include "testxmlreportv2.h"
#include "xmlreportv2.h" #include "xmlreportv2.h"

View File

@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtTest> #include <QtTest/QtTest>
#include <QObject> #include <QObject>
class TestXmlReportV2: public QObject { class TestXmlReportV2: public QObject {

View File

@ -4,6 +4,7 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
OBJECTS_DIR = ../build OBJECTS_DIR = ../build
MOC_DIR = ../build MOC_DIR = ../build
QT += testlib
include(../common.pri) include(../common.pri)