FabricMC / fabric-loader

Fabric's mostly-version-independent mod loader.
Apache License 2.0
632 stars 269 forks source link

Cannot run unit tests with Visual Studio Code #1000

Open haykam821 opened 2 days ago

haykam821 commented 2 days ago

With a simple JUnit setup, tests will crash on start:

java.util.ServiceConfigurationError: org.junit.platform.launcher.LauncherSessionListener: Provider net.fabricmc.loader.impl.junit.FabricLoaderLauncherSessionListener could not be instantiated
java.lang.RuntimeException: Duplicate setLauncher call!

This issue was previously discussed on Discord.