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

No new tests found should be treated as empty results

    Details

    • Similar Issues:

      Description

      Modern build tools like gradle (https://gradle.org/) are smart enough to only rebuild the parts of the project which have been modified.

      When building these projects and only a readme or other none code affecting part has been changed, the build fails with a

      ERROR: Test reports were found but none of them are new. Did tests run?

      even though the build was OK!

      There is a flag allowEmptyResults which overrides when no tests are found. Not finding any new tests should also be categorized as no tests found, but as of today there is no way of overriding this!

      This PR changes the behaviour of  the allowEmptyResults flag, so that old tests are treated as no found tests, thus allowing to use the flag to to avoid the error...

      PR: https://github.com/jenkinsci/junit-plugin/pull/81 

       

        Attachments

          Issue Links

            Activity

            Hide
            akom Alexander Komarov added a comment -

            Since Bjorn Frantzen hasn't responded, I opened my own copy of his PR with minor corrections:

            https://github.com/jenkinsci/junit-plugin/pull/108

            Show
            akom Alexander Komarov added a comment - Since Bjorn Frantzen hasn't responded, I opened my own copy of his PR with minor corrections: https://github.com/jenkinsci/junit-plugin/pull/108
            Hide
            manus manus added a comment -

            Would prefer JENKINS-6268 to this behavior. Addition to not causing an error, many people commenting on the related Jira issues want to have these old results be parsed and actually appear in the report instead of simply ignored or treated as empty results.

            Show
            manus manus added a comment - Would prefer JENKINS-6268 to this behavior. Addition to not causing an error, many people commenting on the related Jira issues want to have these old results be parsed and actually appear in the report instead of simply ignored or treated as empty results.

              People

              • Assignee:
                Unassigned
                Reporter:
                bjorn_frantzen Bjorn Frantzen
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: