|
MQLUNIT
|
Test runner that outputs results to the "Experts" log window of MetaTrader terminal. More...

Public Member Functions | |
| MQLUNIT_TerminalTestRunner () | |
| Constructor : disable alerts by default. More... | |
| ~MQLUNIT_TerminalTestRunner () | |
| Destructor. More... | |
| void | addFailure (MQLUNIT_TestFailure *failure) |
| Registeres a test failure. More... | |
| void | startSuite (MQLUNIT_Test *test) |
| Test suite started event. More... | |
| void | endSuite (MQLUNIT_Test *test) |
| Test suite ended event. More... | |
| void | startTest (MQLUNIT_Test *test, const string name) |
| Test started event. More... | |
| void | endTest (MQLUNIT_Test *test, const string name) |
| Test ended event. More... | |
| bool | run (MQLUNIT_Test *test) |
| Run a test and output the result to the console. More... | |
| void | setAlertsEnabled (bool alertsEnabled) |
| Enable or disable alerts window pop up in case of a test failure. More... | |
Public Member Functions inherited from MQLUNIT_TestRunner | |
| virtual | ~MQLUNIT_TestRunner () |
| Destructor. More... | |
Public Member Functions inherited from MQLUNIT_TestListener | |
| MQLUNIT_TestListener () | |
| Constructor. More... | |
| virtual | ~MQLUNIT_TestListener () |
| Destructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MQLUNIT_TestRunner | |
| string | failureCountFormat (uint count) const |
Test runner that outputs results to the "Experts" log window of MetaTrader terminal.
Optionally can pop up an alert dialog with a list of test failures if any occure.
|
inline |
Constructor : disable alerts by default.
|
inline |
Destructor.
|
virtual |
Registeres a test failure.
| failure | : failure details |
Implements MQLUNIT_TestListener.
|
inlinevirtual |
|
inlinevirtual |
Test ended event.
| test | : test case reference |
| name | : name of a test |
Implements MQLUNIT_TestListener.
|
virtual |
Run a test and output the result to the console.
| test | : a test to run |
Implements MQLUNIT_TestRunner.
|
inline |
Enable or disable alerts window pop up in case of a test failure.
| alertsEnabled | : set to true to enable alerts, set to false to disable alerts |
|
inlinevirtual |
|
virtual |
Test started event.
| test | : test case reference |
| name | : name of a test |
Implements MQLUNIT_TestListener.
|
Copyright © 2017 Eneset Group Trust |