Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce test warning count by not using Assume #951

Merged
merged 6 commits into from
Sep 8, 2020

Conversation

MarkEWaite
Copy link
Contributor

Reduce test warning count by not using Assume

The maven surefire plugin reports skipped tests as a WARNING. That WARNING causes the warnings plugin on ci.jenkins.io to count the skipped test as a warning and display the warning in the job results.

The tests are intentionally skipped so they should not be counted as warnings. This converts the assertion from a warning to no warning. The same code is executed as previously, without the maven surefire warning.

The change also converts a few locations to consistently use the same isWindows() function as is used elsewhere in the code.

Describe the big picture of your changes here to explain to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, include a link to the issue.

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No Javadoc warnings were introduced with my changes
  • No spotbugs warnings were introduced with my changes
  • Documentation in README has been updated as necessary
  • Online help has been added and reviewed for any new or modified fields
  • I have interactively tested my changes
  • Any dependent changes have been merged and published in upstream modules (like git-client-plugin)

Types of changes

  • Dependency or infrastructure update

The maven surefire plugin reports skipped tests as a WARNING.
That WARNING causes the warnings plugin on ci.jenkins.io to count the
skipped test as a warning and display the warning in the job results.

The tests are intentionally skipped so they should not be counted as
warnings.  This converts the assertion from a warning to no warning.
The same code is executed as previously, without the maven surefire
warning.

The change also converts a few locations to consistently use the same
isWindows() function as is used elsewhere in the code.
Either it works or it is deleted
@MarkEWaite MarkEWaite merged commit be265e0 into jenkinsci:master Sep 8, 2020
@MarkEWaite MarkEWaite deleted the stop-skipping-tests branch September 8, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant