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

[JENKINS-70464] added new test case for PluginImpl.java #243

Closed
wants to merge 1 commit into from

Conversation

abhishekmaity
Copy link
Contributor

In response to #114

  • added a new test case PluginImplTest.java
  • added a new dependency jopt-simple in pom.xml as automated by IntelliJ IDE

Testing done

Submitter checklist

@abhishekmaity abhishekmaity requested a review from a team as a code owner October 1, 2023 18:30
@abhishekmaity abhishekmaity changed the title added new test case added new test case for PluginImpl.java Oct 1, 2023
@abhishekmaity abhishekmaity changed the title added new test case for PluginImpl.java [JENKINS-70464] added new test case for PluginImpl.java Oct 1, 2023
Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhishekmaity neither of the proposed changes are a useful addition to the plugin. We're looking for useful additions to the plugin.

The addition of an unused dependency is a net negative because it adds maintenance overhead and brings more dependencies into Jenkins when the plugin is run.

The addition of a test that asserts nothing about the production code of the plugin is a net negative because asserting that variable assignment works in Java is not helping the plugin test suite.

The referenced issue is stating that the pull request should increase the test coverage of the plugin. The test coverage report for this pull request will show no increase in test coverage because the test does not invoke any of the plugin code.

I'm closing this pull request. If you'd like to continue on the path of submitting a pull request that improves test coverage, you'll need to actually improve test coverage.

@MarkEWaite MarkEWaite closed this Oct 1, 2023
@abhishekmaity
Copy link
Contributor Author

Okay

@abhishekmaity abhishekmaity deleted the test-1 branch October 1, 2023 18:49
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.

2 participants