Skip to content

Conversation

@strangelookingnerd
Copy link
Contributor

This PR aims to migrate all tests to JUnit5. Changes include:

  • Migrate annotations and imports
  • Migrate assertions
  • Remove public visibility for test classes and methods
  • Minor clean up

I am well aware that this is a quite large changeset however I hope that there is still interest in this PR and it will be reviewed.
If there are any questions, please do not hesitate to ping me.

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 demonstrate the feature works or the issue is fixed

* Migrate annotations and imports
* Migrate assertions
* Remove public visibility for test classes and methods
* Minor code cleanup
@strangelookingnerd
Copy link
Contributor Author

@jenkinsci/workflow-multibranch-plugin-developers Kindly requesting a review.

jglick
jglick previously requested changes Oct 24, 2025
@WithGitSampleRepo
class WorkflowMultiBranchProjectTest {

public class WorkflowMultiBranchProjectTest {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

A perhaps better answer to jenkinsci/workflow-api-plugin#420 (comment) would be that the presence of

<no-test-jar>false</no-test-jar>
is a sign that you need to search for e.g. https://github.com/jenkinsci/pipeline-groovy-lib-plugin/blob/b0f17d8f5d668d5ac12619e92410ace7f5889c32/pom.xml#L165-L170 and check the impact on all such matches.

(In this case the utility method is also used by tests in CloudBees CI proprietary code, but AFAIK not in a novel way compared to the OSS usages.)

@jglick jglick dismissed their stale review October 24, 2025 20:15

addressed

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