JUnit 5 #1411
Replies: 4 comments 6 replies
-
If the issue which you describe as "nerfed" is fixable by fixing the implementation of TBH, I didn't understand your issue completely, and I have no idea why the sbt plugin bypasses the sbt-testing interface, other than for the reason that sbt-testing interface is not capable enough. Maybe you can shed some more light in case I completely failed to see the point. |
Beta Was this translation helpful? Give feedback.
-
The nerfed implementation is so the SBT plugin, instead of the SBT Framework Library that uses Fingerprints and only Fingerprints, can talk to the JUnit 5 Discovery library and have it discover the Test Classes including private ones. This can't be done with Fingerprints. A separate issue I have with the Fingerprint nerfing is that the |
Beta Was this translation helpful? Give feedback.
-
Maybe it's just a matter of extending Mill to allow me to provide an alternative implementation for |
Beta Was this translation helpful? Give feedback.
-
I think the OP's question can be simplified as 'how to use junit5 with mill' |
Beta Was this translation helpful? Give feedback.
-
I brought this up in gitter.im but I'm not sure this isn't a better place?
Has there been any conversation on junit 5 support from mill? The interface at https://github.com/sbt/sbt-jupiter-interface has an
sbt.testing.Framework
implementation but the fingerprint implementation is nerfed (and poorly at that). The accompanying plugin then provides the classes via SBTsdefinedTests
and uses junit 5's Discovery mechanism because "SBT is currently not capable of detecting package private test classes." I'd like to get this working but I could use some mentorship on "the mill way" to accomplish this integration. I'm tempted to fork sbt-jupiter-interface, fix the nerfed implementation, and forgo the private test classes but that sounds evil.Little background: I'm running Apache Camel from Mill and Camel provides support classes for Junit 4 and 5. I'm not sure what 5 offers over 4 but appears to be accepted as the future of that project.
Beta Was this translation helpful? Give feedback.
All reactions