-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical
-
Component/s: junit-plugin
-
Environment:Platform: PC, OS: Linux
I'm experiencing an issue similar to the one reported in
(https://hudson.dev.java.net/issues/show_bug.cgi?id=1698), but the solutions
suggested don't fix the problem (and the case seems to be a little different).
Basically, Hudson is correctly retrieving the TestNG result file but seems not
to be able to parse it.
This is the relevant part of the build output:
test:
[testng] [Parser] Running:
[testng]
/var/lib/hudson/jobs/TimeServiceBuild/workspace/trunk/TimeService-build/target/test-build/SecurityTest.xml
[testng]
[testng] PASSED: testGenerateSaltedHashStringStringString
[testng]
[testng] ===============================================
[testng] CustomHashTests
[testng] Tests run: 1, Failures: 0, Skips: 0
[testng] ===============================================
[testng]
[testng]
[testng] ===============================================
[testng] Security
[testng] Total tests run: 1, Failures: 0, Skips: 0
[testng] ===============================================
[testng]
[testng] [Parser] Running:
[testng] Broken tests
[testng]
[testng]
[testng] ===============================================
[testng] Broken tests
[testng] Total tests run: 1, Failures: 1, Skips: 0
[testng] ===============================================
[testng]
BUILD SUCCESSFUL
Total time: 4 seconds
Recording test results
None of the test reports contained any result
Sending e-mails to: XXX
finished: FAILURE
The build is an ant build, and this is the TestNG invocation:
<testng
outputdir="${dist.dir}/test-results"
failureProperty="test.failed"
reporter="org.testng.reporters.JUnitXMLReporter">
<jvmarg line="${jvm6.arg}" />
<classpath refid="test.path" />
<xmlfileset dir="${test.dir}" includes="*Test.xml" />
</testng>
(I've tried both with and without the JUnitXMLReporter).
This is the junitResult.xml for the build:
<?xml version='1.0' encoding='UTF-8'?>
<result>
<suites>
<suite>
<name>(testng-results.xml)</name>
<duration>0.0</duration>
<cases/>
</suite>
</suites>
<duration>0.0</duration>
</result>
(Which to me looks like that at least the file, which is configured directly in
the setup, is found)
Finally, this is the report TestNG is generating:
<testng-results>
<reporter-output>
</reporter-output>
<suite name="Security">
<groups>
<group name="unit">
<method
signature="es.tsbsoluciones.timeservice.security.PasswordHashTest.testGenerateSaltedHashStringStringString()"
name="testGenerateSaltedHashStringStringString"
class="es.tsbsoluciones.timeservice.security.PasswordHashTest"/>
</group>
</groups>
<test name="CustomHashTests">
<class name="es.tsbsoluciones.timeservice.security.PasswordHashTest">
<test-method status="PASS"
signature="testGenerateSaltedHashStringStringString()"
name="testGenerateSaltedHashStringStringString" duration-ms="18"
started-at="2008-10-03T17:49:46Z" finished-at="2008-10-03T17:49:46Z">
</test-method>
</class>
</test>
</suite>
</testng-results>
I'm I missing something?
- is duplicated by
-
JENKINS-1698 TestNG results not picked up by hudson
-
- Closed
-