提交 961b1180 编写于 作者: K kohsuke

based on the report and investigation at...

based on the report and investigation at http://www.nabble.com/difference-in-junit-publisher-and-ant-junitreport-tf4308604.html#a12265700 , ignoring <testcase @classname>.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4582 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4e9d404a
......@@ -26,10 +26,17 @@ public final class CaseResult extends TestObject implements Comparable<CaseResul
private /*final*/ int failedSince;
CaseResult(SuiteResult parent, Element testCase) {
String cn = testCase.attributeValue("classname");
if(cn==null)
// Maven seems to skip classname, and that shows up in testSuite/@name
cn = parent.getName();
// schema for JUnit report XML format is not available in Ant,
// so I don't know for sure what means what.
// reports in http://www.nabble.com/difference-in-junit-publisher-and-ant-junitreport-tf4308604.html#a12265700
// indicates that maybe I shouldn't use @classname altogether.
//String cn = testCase.attributeValue("classname");
//if(cn==null)
// // Maven seems to skip classname, and that shows up in testSuite/@name
// cn = parent.getName();
String cn = parent.getName();
className = cn.replace('/','_'); // avoid unsafe chars
testName = testCase.attributeValue("name").replace('/','_');
errorStackTrace = getError(testCase);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册