Issue Type: Bug Bug
Assignee: Unassigned
Attachments: its-always-sunny-in-junit-land.png
Components: junit-plugin
Created: 12/Nov/14 4:33 PM
Description:

Junit is always reporting 100% health report, regardless of number of failing testcases. I have a job with 1 of 1 test failing and still getting a 100% health report.

Hovering over the (sunny) weather icon for the job gives this popup (see attached screenshot):
"Test Result: 1 test failing out of a total of 1 test. 100%

This statement above indicates there is something wrong with the plugin. I'm not sure why it would report 100% health when all tests are failing.

This may be related to adding the health scale amplification factor, but I'm not sure. I have tried different values for the healthScaleFactor, all produce 100% health.
https://issues.jenkins-ci.org/browse/JENKINS-24006

This is the XML I am testing with. Note this is a custom XML I'm creating to mimic a real Junit XML.
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="all_tests" errors="1" tests="1" failures="1" >
<testsuite name="all_tests" errors="1" tests="1" failures="1" >
<testcase classname="myblock" name="mytest " time="30.57" >
<failure> message="testfailed" </failure>
</testcase>
</testsuite>
</testsuites>

It is possible I'm doing something wrong, so I also posted here:
https://groups.google.com/forum/#!topic/jenkinsci-users/-StbbZ0s8jI/discussion

Environment: version 1.589
Junit version 1.2
Project: Jenkins
Priority: Major Major
Reporter: Mark Sinclair
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to