jenkins junit plugin gojne crazy: classname must not be a file but either a directory or not exist

This commit is contained in:
Marc Wäckerlin
2016-06-09 11:18:43 +00:00
parent 5e4443478d
commit f828cffd5b

View File

@@ -602,7 +602,8 @@ class Script: public QObject {
xml::Node testcase("testcase"); xml::Node testcase("testcase");
try { try {
testcase.attr("classname") = testcase.attr("classname") =
xmlattr(_testclass.size()?_testclass:(*cmd)->file(), true).toStdString(); xmlattr(_testclass.size()?"file: "+_testclass:(*cmd)->file(), true)
.toStdString();
testcase.attr("name") = testcase.attr("name") =
xmlattr(QString("%1: %2") xmlattr(QString("%1: %2")
.arg((*cmd)->line()) .arg((*cmd)->line())