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:
kohsuke committed 2007-08-21 01:50:28 +00:00
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() {