Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25573

Junit plugin always produces 100% health report

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin
    • None
    • version 1.589
      Junit version 1.2

      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

            Unassigned Unassigned
            msinclair Mark Sinclair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: