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-70560] Improve DescriptorImpl test coverage #284

Closed
wants to merge 0 commits into from

Conversation

code-arnab
Copy link
Contributor

@code-arnab code-arnab commented Dec 12, 2024

Testing done

Improved test coverage of DescriptorImpl by adding testMonitor_VersionIsNull_Ignored and modifying the existing testMonitor_VersionIsNull to testMonitor_VersionIsNull_NotIgnored. These changes cover both the cases where isIgnored is true and false respectively, and version is null.
Result - Test Coverage of DescriptorImpl improved from 86% to 100%. Overall plugin coverage improved from 81% to 83%.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@code-arnab code-arnab requested a review from a team as a code owner December 12, 2024 15:21
@github-actions github-actions bot added tests Automated test addition or improvement skip-changelog Exclude from the changelog labels Dec 12, 2024
@MarkEWaite MarkEWaite changed the title [Jenkins-70560] Improved DescriptorImpl test coverage [JENKINS-70560] Improve DescriptorImpl test coverage Dec 12, 2024
@MarkEWaite
Copy link
Contributor

Thanks for the pull request. I think that you may be missing something in your development process. You need to checkout your local master branch and update it to the most recent master branch from this repository, then merge those changes into the monitor-test branch you're using for this pull request.

Some commands that you might consider to perform that operation locally, depending on your git configuration:

$ git checkout master
$ git pull --all --prune
$ git merge upstream/master
$ git push origin
$ git checkout monitor-test
$ git merge master

That last command (git merge master) will report a conflict that you will need to resolve.

@code-arnab
Copy link
Contributor Author

Thanks for the pull request. I think that you may be missing something in your development process. You need to checkout your local master branch and update it to the most recent master branch from this repository, then merge those changes into the monitor-test branch you're using for this pull request.

Some commands that you might consider to perform that operation locally, depending on your git configuration:

$ git checkout master
$ git pull --all --prune
$ git merge upstream/master
$ git push origin
$ git checkout monitor-test
$ git merge master

That last command (git merge master) will report a conflict that you will need to resolve.

You're right! Let me update it locally.

@MarkEWaite
Copy link
Contributor

It is a common mistake for new contributors that they forget to keep their local copy of the master branch current with the upstream copy of the master branch. That is a useful skill to develop.

@jonesbusy
Copy link
Contributor

There are multiple option to achieve the same

For example using gh cli. I personnally prefer this to avoid configuring 2 remotes on your local git repository. But it's purely my choice

gh repo sync <user>/<repo> -b master
git fetch --all
git merge origin/master

@code-arnab
Copy link
Contributor Author

There are multiple option to achieve the same

For example using gh cli. I personnally prefer this to avoid configuring 2 remotes on your local git repository. But it's purely my choice

gh repo sync <user>/<repo> -b master
git fetch --all
git merge origin/master

Thanks for the tip. I will try to learn more about this stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Exclude from the changelog tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants