-
Notifications
You must be signed in to change notification settings - Fork 90
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
Support JUnit 5 #41
Comments
It's worth noting that ScalaTest has a similar issue with what seem to be relevant information. |
That’s good to know. Is there a way to support both JUnit 5 and 4 at the same time? |
I'm not sure. My guess would be that either the vintage engine (junit 4) knows how to work with (junit 5) extensions, or that each engine will exclusively use the appropriate method -- vintage will use runners, jupiter will use extensions -- so they can coexist. I don't have any experience with extending junit myself, but this and this look like good guides on the topic. |
I've started working on an upgrade to JUnit 5 and hope to get a PR out soon. I opened an issue for IntelliJ to confirm what changes are needed to keep the IntelliJ integration working https://youtrack.jetbrains.com/issue/SCL-19607 I have confirmed that the Gradle integration continues to work with I suspect this upgrade will also fix the incorrect HTML report issues in Gradle, although I haven't confirmed yet. Overall, I'm really excited about this upgrade since JUnit 5 has a lot of nice improvements! |
Copy-pasting some Discord notes from Olafur:
https://discord.com/channels/632642981228314653/671278431102697472/990954218657546240 |
Part of the mystery is where @olafurpg's branch is, so we can use it as a copy-pasta source as suggested :) |
I suppose it would be this one? olafurpg@50cd80a |
Aha, thanks! |
Is it a change requiring a release of a new major (per semver rules)? |
IMO not necessarily if you provide JUnit4 and JUnit5 runner integrations in separate artefacts. ScalaTest has both JUnit4 and JUnit5 bindings (provided via external dependency: https://github.com/helmethair-co/scalatest-junit-runner) |
From https://contributors.scala-lang.org/t/announcing-munit-a-new-scala-testing-library/4007/11?u=olafurpg
I'm not so familiar with what is needed to make this work but I think it's worth looking into.
The text was updated successfully, but these errors were encountered: