-
Notifications
You must be signed in to change notification settings - Fork 23
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
[JENKINS-70560] Improve JVMMismatchClause test coverage #283
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request needs to run mvn spotless:apply
to retain the correct code formatting
src/test/java/hudson/plugin/versioncolumn/JVMVersionMonitorTest.java
Outdated
Show resolved
Hide resolved
…t.java Covered toString() Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Ah, I see. Thanks for the tip. |
@MarkEWaite |
Click the "Details" link in the right hand column and it will open the failing job on ci.jenkins.io. It is failing because the code formatting does not match the automated code formatting and this plugin uses automated code formatting. |
Closing and reopening the pull request won't change the problem that exists in the pull request. In order to fix the problem in the pull request, you need to run |
I ran mvn spotless:apply but it is still failing. I guess I should create a fresh pr after running the command again |
No, you've discovered an error in the configuration of the plugin source code. Thanks for discovering it. Either you or I can add a new file ".gitattributes" to the root of the repository with the contents:
That will tell git to always write line feed (LF) characters when it commits a change to a Java source file, a Jelly source file, a Markdown source file, or an XML source file. More information is available from the GitHub documentation. Would you be willing to include that fix in this pull request or should I create a separate pull request to fix it ? |
That's interesting. Sure, I'll be willing to make a commit for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for improving the test coverage!
Thank You very much for all the support! |
Improved Test Coverage of JVMVersionMonitor.JVMMismatchCause from 0% to 72%.
Added extensive test coverage for the getTrigger function in the JVMMismatchCause Class of the enclosing JVMVersionMonitor Class. This PR will improve the test coverage of the above said function from 0% to 72%, and overall the entire test coverage of this plugin is improved by 2% from 79% to 81%.
Before
After
Submitter checklist