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
FieldsModifier and TypeFieldDescriptionstatic booleanEnable test development mode.static booleanDetermines if test mode is enabled.static @Nullable FileIn development mode, file that was last run.static PathPath to file where to save results in JSON format.static PathRoot path for scripts containing tests. -
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_DIRinstead. -
TEST_DIR
Root path for scripts containing tests. IfDEV_MODEis enabled, a command will be available to run them individually or collectively. Otherwise, all tests are run, results are written in JSON format toRESULTS_FILEas 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()
-