diff --git a/src/commands.hxx b/src/commands.hxx index f685c4b..2cb2a93 100644 --- a/src/commands.hxx +++ b/src/commands.hxx @@ -602,7 +602,11 @@ class Script: public QObject { xml::Node testcase("testcase"); try { testcase.attr("classname") = - xmlattr(_testclass.size()?_testclass:"file: "+(*cmd)->file(), true) + xmlattr(_testclass.size() + ?_testclass + :"file."+(*cmd)->file() + .replace(QRegularExpression(".wt$"), "") + .replace(".", "-"), true) .toStdString(); testcase.attr("name") = xmlattr(QString("%1: %2")