Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AutotestHarness Class Reference
Inheritance diagram for SCR_AutotestHarness:
TestHarness

Static Protected Member Functions

static void DebugPrintSuites ()
 Prints test suites and their test case state.
static void Begin (SCR_AutotestGroup testGroup, bool autorun=false, bool verboseLog=false)
 Configures the test runner to execute only the test suites present in the specified test group and initializes required structures.
static void Begin (notnull SCR_AutotestSuiteBase testSuite, bool autorun=false, bool verboseLog=false)
 Configures the test runner to execute single test suite and initializes required structures.
static void Begin (notnull SCR_AutotestCaseBase testCase, bool autorun=false, bool verboseLog=false)
 Configures the test runner to execute single test case and initializes required structures.

Static Protected Attributes

static ref SCR_AutotestReport s_Report
static ref SCR_AutotestPrinter s_Logger
static TestBase s_ActiveTestCase
static bool s_bIsRunning = false
static bool s_bOpenLogAfterRun = false
static bool s_bOpenDialogAfterRun = false
static bool s_bCloseGameAfterRun = true

Detailed Description

SCR_AutotestHarness is a thin wrapper around TestHarness, responsible for test instantiation and execution.

if (SCR_AutotestHarness.Finished())
{
SCR_AutotestGroup testGroup = SCR_AutotestHarness.GetDefaultTestGroupConfig();
}
bool runFinished = SCR_AutotestHarness.Run();
PrintFormat("Run: %1", runFinished, level: LogLevel.DEBUG);
if (runFinished)
{
Print("Tests done", LogLevel.DEBUG);
}
Collection of test suites.
static void Begin(SCR_AutotestGroup testGroup, bool autorun=false, bool verboseLog=false)
Configures the test runner to execute only the test suites present in the specified test group and in...
static void DebugPrintSuites()
Prints test suites and their test case state.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)

Definition at line 23 of file SCR_AutotestHarness.c.

Member Function Documentation

◆ Begin() [1/3]

void SCR_AutotestHarness::Begin ( notnull SCR_AutotestCaseBase testCase,
bool autorun = false,
bool verboseLog = false )
inlinestaticprotected

Configures the test runner to execute single test case and initializes required structures.

Definition at line 84 of file SCR_AutotestHarness.c.

◆ Begin() [2/3]

void SCR_AutotestHarness::Begin ( notnull SCR_AutotestSuiteBase testSuite,
bool autorun = false,
bool verboseLog = false )
inlinestaticprotected

Configures the test runner to execute single test suite and initializes required structures.

Definition at line 71 of file SCR_AutotestHarness.c.

◆ Begin() [3/3]

void SCR_AutotestHarness::Begin ( SCR_AutotestGroup testGroup,
bool autorun = false,
bool verboseLog = false )
inlinestaticprotected

Configures the test runner to execute only the test suites present in the specified test group and initializes required structures.

Definition at line 57 of file SCR_AutotestHarness.c.

◆ DebugPrintSuites()

void SCR_AutotestHarness::DebugPrintSuites ( )
inlinestaticprotected

Prints test suites and their test case state.

Definition at line 37 of file SCR_AutotestHarness.c.

Member Data Documentation

◆ s_ActiveTestCase

TestBase SCR_AutotestHarness::s_ActiveTestCase
staticprotected

Definition at line 28 of file SCR_AutotestHarness.c.

◆ s_bCloseGameAfterRun

bool SCR_AutotestHarness::s_bCloseGameAfterRun = true
staticprotected

Definition at line 33 of file SCR_AutotestHarness.c.

◆ s_bIsRunning

bool SCR_AutotestHarness::s_bIsRunning = false
staticprotected

Definition at line 30 of file SCR_AutotestHarness.c.

◆ s_bOpenDialogAfterRun

bool SCR_AutotestHarness::s_bOpenDialogAfterRun = false
staticprotected

Definition at line 32 of file SCR_AutotestHarness.c.

◆ s_bOpenLogAfterRun

bool SCR_AutotestHarness::s_bOpenLogAfterRun = false
staticprotected

Definition at line 31 of file SCR_AutotestHarness.c.

◆ s_Logger

ref SCR_AutotestPrinter SCR_AutotestHarness::s_Logger
staticprotected

Definition at line 26 of file SCR_AutotestHarness.c.

◆ s_Report

ref SCR_AutotestReport SCR_AutotestHarness::s_Report
staticprotected

Definition at line 25 of file SCR_AutotestHarness.c.


The documentation for this class was generated from the following file: