mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
fixed a bug in JUnit result recording that uses <testsuites>.
See http://www.nabble.com/More-JUnit-test-report-problems...-tf4267020.html#a12143611 git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4369 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
080776f790
commit
ab417c16ca
1 file changed
+7
@@ -45,6 +45,13 @@ public final class SuiteResult implements Serializable {
|
||||
for (Element e : (List<Element>)root.elements("testcase")) {
|
||||
cases.add(new CaseResult(this,e));
|
||||
}
|
||||
// a user reported that there's a slight variation of the format that puts <testsuites> at root
|
||||
// see http://www.nabble.com/More-JUnit-test-report-problems...-tf4267020.html#a12143611
|
||||
for (Element suite : (List<Element>)root.elements("testsuite")) {
|
||||
for (Element e : (List<Element>)suite.elements("testcase")) {
|
||||
cases.add(new CaseResult(this,e));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
||||
Reference in new issue
Block a user