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

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: