GUITESTS: Refactoring XmlReport test.

This commit is contained in:
Kimmo Varis 2011-06-10 12:44:26 +03:00
parent eb648eb3f7
commit edbb66cb20
4 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,5 @@
CONFIG += ordered
TEMPLATE = subdirs
SUBDIRS = translationhandler
SUBDIRS = translationhandler \
xmlreport

View File

@ -1,6 +1,6 @@
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -46,3 +46,5 @@ void TestXmlReport::testGetVersion2()
const QString filepath("xmlfiles/xmlreport_v2.xml");
QCOMPARE(XmlReport::determineVersion(filepath), 2);
}
QTEST_MAIN(TestXmlReport)

View File

@ -1,6 +1,6 @@
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -0,0 +1,13 @@
TEMPLATE = app
TARGET = test-xmlreport
DEPENDPATH += .
INCLUDEPATH += .
OBJECTS_DIR = build
MOC_DIR = build
include(../common.pri)
# tests
SOURCES += testxmlreport.cpp
HEADERS += testxmlreport.h