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

If all JUnit tests are skipped, the build fails

    Details

    • Similar Issues:

      Description

      When all JUnit tests are skipped, the JUnit result archiver considers the build to have failed, since pass count and fail count are both zero.

      I believe that the attached patch would fix the problem, though I haven't succeeded to build it and test it.

        Attachments

          Issue Links

            Activity

            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2427
            [FIXED JENKINS-7970] JUnit result archiver should only fail builds if there are really no results - i.e. also no skipped tests. (Revision 9bc7e21dc0bd679e7b6506f264079630493237d4)

            Result = SUCCESS
            Christoph Kutzinski : 9bc7e21dc0bd679e7b6506f264079630493237d4
            Files :

            • changelog.html
            • core/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java
            • core/src/main/java/hudson/tasks/junit/TestResult.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2427 [FIXED JENKINS-7970] JUnit result archiver should only fail builds if there are really no results - i.e. also no skipped tests. (Revision 9bc7e21dc0bd679e7b6506f264079630493237d4) Result = SUCCESS Christoph Kutzinski : 9bc7e21dc0bd679e7b6506f264079630493237d4 Files : changelog.html core/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java core/src/main/java/hudson/tasks/junit/TestResult.java
            Hide
            triangletodd Todd Edwards added a comment -

            Thank you so much!

            Show
            triangletodd Todd Edwards added a comment - Thank you so much!
            Hide
            joelbdoin Joel Beaudoin added a comment -

            Any estimate as to when this will make it into a release package? I don't see it in the changelog yet.

            Show
            joelbdoin Joel Beaudoin added a comment - Any estimate as to when this will make it into a release package? I don't see it in the changelog yet.
            Hide
            kutzi kutzi added a comment - - edited

            Will be in 1.511. Look under 'upcoming changes': http://jenkins-ci.org/changelog

            Show
            kutzi kutzi added a comment - - edited Will be in 1.511. Look under 'upcoming changes': http://jenkins-ci.org/changelog
            Hide
            joelbdoin Joel Beaudoin added a comment -

            Thanks mate. I missed the 'upcoming changes' link.

            Show
            joelbdoin Joel Beaudoin added a comment - Thanks mate. I missed the 'upcoming changes' link.

              People

              • Assignee:
                kutzi kutzi
                Reporter:
                mhenoch mhenoch
              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: