Class UnitTest

java.lang.Object
net.neoforged.moddevgradle.dsl.UnitTest

public abstract class UnitTest extends Object
Used to enable and configure the JUnit integration.
  • Constructor Details

    • UnitTest

      @Inject public UnitTest(org.gradle.api.Project project)
  • Method Details

    • enable

      public void enable()
      Enables the integration.
    • getTestedMod

      public abstract org.gradle.api.provider.Property<ModModel> getTestedMod()
      The mod that will be loaded in JUnit tests. The compiled classes from src/test/java and the resources from src/test/resources will be added to that mod at runtime.