GUI: Fix tests
This commit is contained in:
parent
7799ed4243
commit
fee01099a9
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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\\\"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue