Skip to content

Commit edbb66c

Browse files
committed
GUITESTS: Refactoring XmlReport test.
1 parent eb648eb commit edbb66c

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

‎gui/test/test.pro‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG += ordered
22
TEMPLATE = subdirs
33

4-
SUBDIRS = translationhandler
4+
SUBDIRS = translationhandler \
5+
xmlreport
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Cppcheck - A tool for static C/C++ code analysis
3-
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
3+
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -46,3 +46,5 @@ void TestXmlReport::testGetVersion2()
4646
const QString filepath("xmlfiles/xmlreport_v2.xml");
4747
QCOMPARE(XmlReport::determineVersion(filepath), 2);
4848
}
49+
50+
QTEST_MAIN(TestXmlReport)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Cppcheck - A tool for static C/C++ code analysis
3-
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
3+
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by

‎gui/test/xmlreport/xmlreport.pro‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
TEMPLATE = app
2+
TARGET = test-xmlreport
3+
DEPENDPATH += .
4+
INCLUDEPATH += .
5+
OBJECTS_DIR = build
6+
MOC_DIR = build
7+
8+
include(../common.pri)
9+
10+
# tests
11+
SOURCES += testxmlreport.cpp
12+
13+
HEADERS += testxmlreport.h

0 commit comments

Comments
 (0)