-
Notifications
You must be signed in to change notification settings - Fork 80
Migrate tests to JUnit5 #420
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
Open
strangelookingnerd
wants to merge
12
commits into
jenkinsci:master
Choose a base branch
from
strangelookingnerd:migrate_to_junit5
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
eb1d805
Migrate tests to JUnit5
strangelookingnerd ba95370
Update parent and remove jth version
strangelookingnerd 9cd17b9
Merge branch 'master' into migrate_to_junit5
strangelookingnerd 8ea08ed
Merge branch 'master' into migrate_to_junit5
strangelookingnerd 7c76883
Merge branch 'master' into migrate_to_junit5
strangelookingnerd 6d02dfe
Bump org.jenkins-ci.plugins:plugin from 5.24 to 5.26
dependabot[bot] 67badae
Bump org.awaitility:awaitility from 4.2.2 to 4.3.0
dependabot[bot] 8a9a4dd
Disallow soft references in MemoryAssert-related tests in FlowExecuti…
dwnusbaum cf1feb6
Merge branch 'master' into migrate_to_junit5
strangelookingnerd 3a48717
Merge branch 'master' into migrate_to_junit5
strangelookingnerd 2617bcf
Change LogStorageTestBase class to public
strangelookingnerd 26b795f
Change ArtifactManagerTest class to public
strangelookingnerd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Will break https://github.com/jenkinsci/artifact-manager-s3-plugin/blob/74e888e4e3f275675814d7f809db634720730a8f/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/s3/JCloudsArtifactManagerTest.java#L43 https://github.com/jenkinsci/artifact-manager-s3-plugin/blob/74e888e4e3f275675814d7f809db634720730a8f/src/test/java/io/jenkins/plugins/artifact_manager_jclouds/MockBlobStoreTest.java#L27 https://github.com/jenkinsci/compress-artifacts-plugin/blob/a630439048b97242497f939b39094383277b6551/src/test/java/org/jenkinsci/plugins/compress_artifacts/CompressingArtifactManagerFactoryTest.java#L27 etc.
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.
I'll look into it. On a side-note: Is there a clever way for me to find these kind of dependencies or to you just happen to know them?
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.
In this case I wrote the class and some of its subclasses so I just happened to remember that this was being used as a test utility, not only a suite here. And I have had to make matching changes in the past for various reasons, like migrating away from
docker-fixtures.It is not immediately apparently that just restoring
publicwould suffice; you would need to try updating at least one subclass to use the Jupiter version and verify that it still runs as a test (and, of course, passes).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.
https://github.com/search?type=code&q=org%3Ajenkinsci+NOT+is%3Aarchived+ArtifactManagerTest FTR (I use a Firefox bookmarklet for this sort of search).