SCR_AutotestHarness is a thin wrapper around TestHarness, responsible for test instantiation and execution.
More...
|
| 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 SCR_AutotestReport | Finish () |
| | Signal that the test runner is finished. Does any necessary cleanup.
|
| |
| static void | _SetActiveTestCase (TestBase testCase) |
| | Internal function. Sets active test case.
|
| |
| static TestBase | ActiveTestCase () |
| | Currently executed test case.
|
| |
| static SCR_AutotestPrinter | GetLogger () |
| |
| static SCR_AutotestGroup | GetDefaultTestGroupConfig () |
| | Returns default test group for the project.
|
| |
SCR_AutotestHarness is a thin wrapper around TestHarness, responsible for test instantiation and execution.
{
}
PrintFormat("Run: %1", runFinished, level: LogLevel.DEBUG);
if (runFinished)
{
Print("Tests done", LogLevel.DEBUG);
}
Collection of test suites.
Definition SCR_AutotestGroup.c:4
SCR_AutotestHarness is a thin wrapper around TestHarness, responsible for test instantiation and exec...
Definition SCR_AutotestHarness.c:24
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...
Definition SCR_AutotestHarness.c:57
static SCR_AutotestGroup GetDefaultTestGroupConfig()
Returns default test group for the project.
Definition SCR_AutotestHarness.c:256
static void DebugPrintSuites()
Prints test suites and their test case state.
Definition SCR_AutotestHarness.c:37
◆ _SetActiveTestCase()
| static void SCR_AutotestHarness._SetActiveTestCase |
( |
TestBase | testCase | ) |
|
|
static |
Internal function. Sets active test case.
◆ ActiveTestCase()
| static TestBase SCR_AutotestHarness.ActiveTestCase |
( |
| ) |
|
|
static |
Currently executed test case.
◆ Begin() [1/3]
| static void SCR_AutotestHarness.Begin |
( |
notnull SCR_AutotestCaseBase | testCase, |
|
|
bool | autorun = false, |
|
|
bool | verboseLog = false ) |
|
static |
Configures the test runner to execute single test case and initializes required structures.
◆ Begin() [2/3]
| static void SCR_AutotestHarness.Begin |
( |
notnull SCR_AutotestSuiteBase | testSuite, |
|
|
bool | autorun = false, |
|
|
bool | verboseLog = false ) |
|
static |
Configures the test runner to execute single test suite and initializes required structures.
◆ Begin() [3/3]
| static void SCR_AutotestHarness.Begin |
( |
SCR_AutotestGroup | testGroup, |
|
|
bool | autorun = false, |
|
|
bool | verboseLog = false ) |
|
static |
Configures the test runner to execute only the test suites present in the specified test group and initializes required structures.
◆ DebugPrintSuites()
| static void SCR_AutotestHarness.DebugPrintSuites |
( |
| ) |
|
|
static |
Prints test suites and their test case state.
◆ Finish()
Signal that the test runner is finished. Does any necessary cleanup.
◆ GetDefaultTestGroupConfig()
Returns default test group for the project.
Should be overridden in project specific addon.
◆ GetLogger()
◆ s_ActiveTestCase
| TestBase SCR_AutotestHarness.s_ActiveTestCase |
|
staticprotected |
◆ s_bCloseGameAfterRun
| bool SCR_AutotestHarness.s_bCloseGameAfterRun = true |
|
static |
◆ s_bIsRunning
| bool SCR_AutotestHarness.s_bIsRunning = false |
|
static |
◆ s_bOpenDialogAfterRun
| bool SCR_AutotestHarness.s_bOpenDialogAfterRun = false |
|
static |
◆ s_bOpenLogAfterRun
| bool SCR_AutotestHarness.s_bOpenLogAfterRun = false |
|
static |
◆ s_Logger
◆ s_Report
The documentation for this interface was generated from the following file:
- Game/Tests/TestFramework/SCR_AutotestHarness.c