Package net.neoforged.moddevgradle.dsl
Class UnitTest
java.lang.Object
net.neoforged.moddevgradle.dsl.UnitTest
Used to enable and configure the JUnit integration.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnitTest
@Inject public UnitTest(org.gradle.api.Project project)
-
-
Method Details
-
enable
public void enable()Enables the integration. -
getTestedMod
The mod that will be loaded in JUnit tests. The compiled classes fromsrc/test/javaand the resources fromsrc/test/resourceswill be added to that mod at runtime. -
getLoadedMods
The mods to load when running unit tests. Defaults to all mods registered in the project. This must containgetTestedMod().- See Also:
-