-
Bug
-
Resolution: Fixed
-
Major
-
None
JUnit allows to nest testsuites indefinetly (using TestSuite.addTestSuite()) which results in xml files that have <testsuites> element as root and under that a hierarchy of <testsuite> elements. Currently the SuiteResult class in Hudson can only handle a single level of nesting, which results in the "None of the test reports contained any result" error in the build.
So my junit result looks like this:
<?xml version="1.0" encoding="UTF-8"?> <testsuites name="Automated Tests" tests="186" errors="0" failures="0" ignored="0"> <testsuite name="test.AutomatedTests" time="4.486"> <testsuite name="test.fs.FileSystemTest" time="0.014"> <testcase name="testPrefix" classname="test.fs.FileSystemTest" time="0.003"/> </testsuite> <testsuite name="test.db.DatabaseTest" time="0.014"> <testcase name="testTable" classname="test.db.DatabaseTest" time="0.003"/> </testsuite> </testsuite> </testsuites
Code changed in jenkins
User: Stephen Connolly
Path:
test/src/main/java/org/jvnet/hudson/test/TestExtensionLoader.java
http://jenkins-ci.org/commit/jenkins/97f1d02cbdc0aa85d2e907d878b126e80fd0880b
Log:
Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run on plugins in fixing
JENKINS-6545