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

Default "SUCCESS" status reported when no results are found is wrong

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • testlink-plugin
    • None

      In the console example below:

      "Found 0 test result(s).
      Updating TestLink test cases.
      No emails were triggered.
      Finished: SUCCESS"

      we can see that when no test results are found, the test link plug-in reports a "SUCCESS" status. I think it's wrong and a "FAILURE" status should be reported instead.

      Fix proposal:
      Just adding:
      if (report.getTestsTotal()==0) {
      build.setResult(Result.FAILURE);
      }

      in src/main/java/hudson/plugins/testlink/TestLinkBuilder.java
      at the end of the perform method is sufficient in my case.

      Best Regards,
      Oscar

            kinow Bruno P. Kinoshita
            oscar oscar francois
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: