fabric-loader icon indicating copy to clipboard operation
fabric-loader copied to clipboard

JUnit ParameterizedTest Is missing from the Fabric Loader

Open CodexNotFound opened this issue 8 months ago • 2 comments

I wanted to implement some unit tests using the @ParameterizedTest annotation from JUnit, unfortunately it's not included in the Fabric bundled version of JUnit. In the world of C# testing this is such a basic feature, that I'm very surprised it's not there.

I've looked around in the Discord and I came across this post from 2023. Here someone wanted to use it as well and manually pulled it in, which according to modmuss is causing issues.

Image

Image

Image

Now, almost 2 years later, these have not been included yet, which is a real shame. Is this something forgotten about, or was there a reason to not add it?

CodexNotFound avatar Apr 28 '25 16:04 CodexNotFound

Can you try pulling it in yourself? I forget what issues it was causing?

In theory it should just be a matter of adding testImplementation 'org.junit.jupiter:junit-jupiter-params:5.12.2'.

I forget the reasons why this user was having issues.

modmuss50 avatar Apr 28 '25 16:04 modmuss50

I had tried that before, but I'm guessing a version mismatch happened. Using 5.12.2 seems to work :D

CodexNotFound avatar Apr 29 '25 09:04 CodexNotFound