GUITESTS: Refactoring XmlReport test.
This commit is contained in:
parent
eb648eb3f7
commit
edbb66cb20
|
@ -1,4 +1,5 @@
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS = translationhandler
|
SUBDIRS = translationhandler \
|
||||||
|
xmlreport
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Cppcheck - A tool for static C/C++ code analysis
|
* 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
|
* 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
|
* 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");
|
const QString filepath("xmlfiles/xmlreport_v2.xml");
|
||||||
QCOMPARE(XmlReport::determineVersion(filepath), 2);
|
QCOMPARE(XmlReport::determineVersion(filepath), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QTEST_MAIN(TestXmlReport)
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Cppcheck - A tool for static C/C++ code analysis
|
* 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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
|
@ -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
|
Loading…
Reference in New Issue