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

Switch remaining jUnit 4 tests to jUnit jupiter #973

Open
OlgaMaciaszek opened this issue Jun 28, 2021 · 10 comments · Fixed by #975
Open

Switch remaining jUnit 4 tests to jUnit jupiter #973

OlgaMaciaszek opened this issue Jun 28, 2021 · 10 comments · Fixed by #975

Comments

@OlgaMaciaszek
Copy link
Collaborator

No description provided.

@OlgaMaciaszek OlgaMaciaszek changed the title Switch remaining jUnit 4 tests to jUnit jupiter #563 Switch remaining jUnit 4 tests to jUnit jupiter Jun 28, 2021
@spencergibb
Copy link
Member

Assigning to @robertmcnees

@deepakchethan
Copy link

Hello @spencergibb, Can I take this up if nobody is working on it already? Thanks in advance!

@spencergibb
Copy link
Member

Someone is assigned already

robertmcnees pushed a commit to robertmcnees/spring-cloud-commons that referenced this issue Jul 7, 2021
@robertmcnees robertmcnees linked a pull request Jul 7, 2021 that will close this issue
robertmcnees pushed a commit to robertmcnees/spring-cloud-commons that referenced this issue Jul 7, 2021
spencergibb pushed a commit that referenced this issue Jul 7, 2021
* Upgrade JUnit version (#973)

See gh-973
robertmcnees pushed a commit to robertmcnees/spring-cloud-commons that referenced this issue Jul 8, 2021
robertmcnees pushed a commit to robertmcnees/spring-cloud-commons that referenced this issue Jul 8, 2021
@robertmcnees robertmcnees reopened this Jul 8, 2021
@robertmcnees
Copy link
Contributor

Moved back to open so more modules can be converted.

@OlgaMaciaszek
Copy link
Collaborator Author

@ManasviGoyal is working on reducing method and class visibility after the conversion to JUnitJupiter.

@timtebeek
Copy link
Contributor

Gave it a quick try to convert more classes over to JUnit 5; outcome here:
main...timtebeek:increase-junit-platform-usage
This is mostly the result of applying the JUnit4 to 5 conversion from OpenRewrite.

I had not yet created a merge request (although willing) as it appeared @ManasviGoyal was also working on this previously, and I don't know the current state of that effort.

I had dropped the Adhoc suites for now, as they are ignored currently, and converting them to disabled suites would require additional depencies. Please let me know if these should be restored as they were or converted with the added dependencies.

There's quite a few tests left over that rely on the ModifiedClassPathRunner; is anyone aware of a similar mechanism for JUnit Jupiter? I'm aware of the FilteredClassLoader when testing Auto-configuration, but I don't know it that would be applicable here.

@OlgaMaciaszek
Copy link
Collaborator Author

@timtebeek, @spencergibb is currently working on an alternative to the ModifiedClassPathRunner for JUpiter. We'll update here once that's done.

@timtebeek
Copy link
Contributor

Any replacement for the ModifiedClassPathRunner could also help complete the Jupiter migration in spring-cloud/spring-cloud-gateway#2387, so mentioning that here to have a feedback loop back to that issue as well.

@timtebeek
Copy link
Contributor

Noticed there's a ModifiedClassPathExtension in Spring Boot; would that be suitable here as well?

@spencergibb
Copy link
Member

yes, I have local branch with a copy, but there are errors I haven't had time to work thru.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants