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] Test AddEmbeddableBadgeConfigStep #244

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

abhishekmaity
Copy link
Contributor

@abhishekmaity abhishekmaity commented Oct 2, 2023

In response #114,

Testing done

  • AddEmbeddableBadgeConfigStepTest.java
  • currently, test coverage is as shown below

Screenshot 2023-10-02 200258

After changes, test coverage stands as shown below

Screenshot 2023-10-02 195611

Submitter checklist

Preview Give feedback

@abhishekmaity abhishekmaity requested a review from a team as a code owner October 2, 2023 14:37
@abhishekmaity abhishekmaity changed the title Improve test coverage AddEmbeddableBadgeConfigStepTest.java [JENKINS-70464] Improve test coverage AddEmbeddableBadgeConfigStepTest.java Oct 2, 2023
@abhishekmaity
Copy link
Contributor Author

@MarkEWaite added a test case to improve code coverage.

@MarkEWaite
Copy link
Contributor

MarkEWaite commented Oct 2, 2023

@MarkEWaite added a test case to improve code coverage.

Very good. That's a nice step.

There are some things that can improve in your development process. The plugin uses automated source code formatting so that source code formatting differences do not distract maintainers when reviewing proposed code changes. Your pull request has not been formatted with the automated source code formatter. That indicates you did not run the command mvn verify to run the tests and confirm the static analysis checks pass (like spotbugs and source code formatting).

Before submitting a pull request, it is a good practice to run mvn verify, since that is what will be done by the CI job. The CI job failed because you need to update the formatting of the source code. . When you run mvn verify, you'll see a failure message that advises you to run mvn spotless:apply

Run the command mvn spotless:apply to format the source code, then push the resulting commit to the repository.

A little more info about source formatting is in the contributing guide.

@abhishekmaity
Copy link
Contributor Author

@MarkEWaite added a test case to improve code coverage.

Very good. That's a nice step.

There are some things that can improve in your development process. The plugin uses automated source code formatting so that source code formatting differences do not distract maintainers when reviewing proposed code changes. Your pull request has not been formatted with the automated source code formatter. That indicates you did not run the command mvn verify to run the tests and confirm the static analysis checks pass (like spotbugs and source code formatting).

Before submitting a pull request, it is a good practice to run mvn verify, since that is what will be done by the CI job. The CI job failed because you need to update the formatting of the source code. . When you run mvn verify, you'll see a failure message that advises you to run mvn spotless:apply

Run the command mvn spotless:apply to format the source code, then push the resulting commit to the repository.

A little more info about source formatting is in the contributing guide.

@MarkEWaite Thanks for pointing out this important aspect. mvn verify and mvn spotless:apply now applied to PR

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.

Thanks! This is a great start. Would love to have additional pull requests that further improve the test coverage.

@MarkEWaite MarkEWaite enabled auto-merge (squash) October 2, 2023 16:59
@MarkEWaite MarkEWaite added the tests Automated test addition or improvement label Oct 2, 2023
@MarkEWaite MarkEWaite changed the title [JENKINS-70464] Improve test coverage AddEmbeddableBadgeConfigStepTest.java [JENKINS-70464] Test AddEmbeddableBadgeConfigStep Oct 2, 2023
@abhishekmaity
Copy link
Contributor Author

Thanks! This is a great start. Would love to have additional pull requests that further improve the test coverage.

@MarkEWaite Yes, I will try to my best knowledge.

@MarkEWaite MarkEWaite merged commit a64af16 into jenkinsci:master Oct 2, 2023
@abhishekmaity abhishekmaity deleted the test-coverage-1 branch October 2, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants