Package ch.njol.skript.tests.runner
Class TestMode
java.lang.Object
ch.njol.skript.tests.runner.TestMode
Static utilities for Skript's 'test mode'.
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Enable test development mode.static boolean
Determines if test mode is enabled.static @Nullable File
In development mode, file that was last run.static Path
Path to file where to save results in JSON format.static Path
Root path for scripts containing tests. -
Constructor Summary
-
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. -
RESULTS_FILE
Path to file where to save results in JSON format. -
lastTestFile
In development mode, file that was last run.
-
-
Constructor Details
-
TestMode
public TestMode()
-