|
Arma Reforger Script API
|
Specialized logging class for tests. More...
Public Member Functions | |
| void | PrintTestSuitePrelude (TestSuite suite) |
| void | PrintTestSuiteEpilogue (TestSuite suite) |
| void | Log (string msg, LogLevel level=LogLevel.NORMAL, bool forceFileWrite=false, bool consoleLog=true) |
| Should be used in tests instead of global Print. Forwards test output to separate file. | |
| void | LogOnce (string msg, LogLevel level=LogLevel.NORMAL) |
| Prevents duplicate printing of the same message. Intended to be used with messages printed many times a second. | |
| void | LogTestCaseResult (TestBase test) |
| Writes test result to console and autotest log files. | |
| void | SCR_AutotestPrinter (bool verbose) |
| void | ~SCR_AutotestPrinter () |
Static Public Attributes | |
| static const string | LOG_PATH = "$logs:autotest.log" |
| static const int | LOG_ONCE_THRESHOLD = 10000 |
Protected Attributes | |
| bool | m_bLogVerbose |
| ref FileHandle | m_LogFile |
| ref map< TypeName, ref array< string > > | m_mLogBuffer = new map<TypeName, ref array<string>>() |
| string | m_sLogOnceLastMsg |
| int | m_iLogOnceLastMsgCount |
Specialized logging class for tests.
Outputs logs to console and also buffers them for later output to autotest log file. Should be used instead of Print and PrintFormat inside the SCR_AutotestSuite and SCR_AutotestCase classes.
| void SCR_AutotestPrinter.SCR_AutotestPrinter | ( | bool | verbose | ) |
| void SCR_AutotestPrinter.~SCR_AutotestPrinter | ( | ) |
| void SCR_AutotestPrinter.Log | ( | string | msg, |
| LogLevel | level = LogLevel::NORMAL, | ||
| bool | forceFileWrite = false, | ||
| bool | consoleLog = true ) |
Should be used in tests instead of global Print. Forwards test output to separate file.
| void SCR_AutotestPrinter.LogOnce | ( | string | msg, |
| LogLevel | level = LogLevel::NORMAL ) |
Prevents duplicate printing of the same message. Intended to be used with messages printed many times a second.
| void SCR_AutotestPrinter.LogTestCaseResult | ( | TestBase | test | ) |
Writes test result to console and autotest log files.
If test is failed or verbose logging is enabled will additionaly print test log output for debugging.
| void SCR_AutotestPrinter.PrintTestSuiteEpilogue | ( | TestSuite | suite | ) |
| void SCR_AutotestPrinter.PrintTestSuitePrelude | ( | TestSuite | suite | ) |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |