Package ch.njol.skript.test.runner
Class TestMode
java.lang.Object
ch.njol.skript.test.runner.TestMode
Static utilities for Skript's 'test mode'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
Enable test development mode.static boolean
If the docs failed due to templates or other exceptions.static final boolean
Determines if test mode is enabled.static final boolean
If Skript should run the gen-docs command.static final boolean
If this test is for JUnits on the server.static @Nullable File
In development mode, file that was last run.static final Path
Path to file where to save results in JSON format.static final Path
Root path for scripts containing tests.static final @Nullable String
Overrides the logging verbosity in the config with the property. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENABLED
public static final boolean ENABLEDDetermines if test mode is enabled. In test mode, Skript will not load normal scripts, working withTEST_DIR
instead. -
TEST_DIR
Root path for scripts containing tests. IfDEV_MODE
is enabled, a command will be available to run them individually or collectively. Otherwise, all tests are run, results are written in JSON format toRESULTS_FILE
as inTestResults
. -
DEV_MODE
public static final boolean DEV_MODEEnable test development mode. Skript will allow individual test scripts to be loaded and ran, and prints results to chat or console. -
GEN_DOCS
public static final boolean GEN_DOCSIf Skript should run the gen-docs command. -
VERBOSITY
Overrides the logging verbosity in the config with the property. -
RESULTS_FILE
Path to file where to save results in JSON format. -
JUNIT
public static final boolean JUNITIf this test is for JUnits on the server. -
lastTestFile
In development mode, file that was last run. -
docsFailed
public static boolean docsFailedIf the docs failed due to templates or other exceptions. Only updates if TestMode.GEN_DOCS is set.
-
-
Constructor Details
-
TestMode
public TestMode()
-