![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Data Structures | |
| class | Test |
| Attribute used for tests annotation and assignment to Suites. More... | |
| class | TestBase |
| Test base class. More... | |
| class | TestHarness |
| Collection and main interface of the Testing framework. More... | |
Functions | |
| TestBase Managed | Failure () |
| Base class for test results. This way you report back to the system. More complex failure types with descriptions can be reported by implementation of FailureText in format of junit [https://llg.cubic.org/docs/junit/]. | |
| string | FailureText () |
| Text used for xml report output. | |
| proto string | GetName () |
| Suite class name getter. Strictly for UI porposes! | |
| proto native int | GetNTests () |
| Returns the number for tests within this suite. | |
| proto native TestBase | GetTest (int handle) |
| Returns a test. | |
| proto native bool | IsEnabled () |
| Enabled flag getter. | |
| proto native bool | NativeFailure () |
| proto native string | NativeFailureText () |
| void | OnInit () |
| Callback for user defined initialization. Called for all suites during TestHarness.Begin(). | |
| proto native void | SetEnabled (bool val) |
| Enables/Disables the suites. Disabled suites won't run at all. | |
| TestHarness Managed | SetResult (TestResultBase res) |
| Collection of tests. | |
| void | Step (EStage stage=EStage.Main) |
Variables | |
| class Test | Main |
| class Test | Setup |
| Stage definition used in conjunction with Step attribute. | |
| class Test | Stage |
| Attribute which marks a method as part of the testing process. | |
Can be perfomed in form of annotated free functions.
Note: Notice the Suite name in the attribute.
More elaborate tests that need some state and will run for several ticks have to be defined as TestBase derived classes. Your logic has to be ran through step methods.
Base class for test results. This way you report back to the system. More complex failure types with descriptions can be reported by implementation of FailureText in format of junit [https://llg.cubic.org/docs/junit/].
Return true of the result means failure.
Definition at line 176 of file testingframework.c.
|
protected |
Text used for xml report output.
Definition at line 206 of file testingframework.c.
References NativeFailureText().
| proto string GetName | ( | ) |
Suite class name getter. Strictly for UI porposes!
Test name getter. Strictly for UI porposes!
Definition at line 50 of file syncedvalue.c.
References m_Name.
| proto native int GetNTests | ( | ) |
Returns the number for tests within this suite.
| proto native bool IsEnabled | ( | ) |
Enabled flag getter.
Referenced by PointLightBase::OnFrameLightSource(), and SpotLightBase::PerformVisibilityCheck().
|
protected |
|
protected |
Referenced by FailureText().
|
protected |
Callback for user defined initialization. Called for all suites during TestHarness.Begin().
Definition at line 81 of file freezestate.c.
References GetPlugin(), PluginBase::InitWidgets(), m_ConfigDebugProfile, m_DebugRootWidget, m_Duration, m_ID, m_SymptomType, and vector::Zero.
Referenced by AnimationTimer::AnimationTimer(), TimerBase::Timer(), and TimerBase::WidgetFadeTimer().
| proto native void SetEnabled | ( | bool | val | ) |
Enables/Disables the suites. Disabled suites won't run at all.
Enables/Disables the test. Disabled tests won't run at all.
| proto native void SetResult | ( | TestResultBase | res | ) |
Collection of tests.
Sets the test result. Failure can result in specialized behavior described in TestResultBase.
Sets the suite result. Failure can result in specialized behavior described in TestResultBase.
References Stage.
| void Step | ( | EStage | stage = EStage.Main | ) |
Definition at line 129 of file testingframework.c.
| class Test Main |
| class Test Setup |
Stage definition used in conjunction with Step attribute.
Referenced by CAContinuousQuantityRepeat::Execute(), CAContinuousTimeCooking::Execute(), and CABase::Init().
| class Test Stage |
Attribute which marks a method as part of the testing process.
Referenced by SetResult().