Junit plugin always produces 100% health report

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Mark Sinclair
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: