|
RobotTestingFramework 2.0.1
Robot Testing Framework
|
class ConsoleListener listens to any messages reported by the tests during the test run, formates them and print them to the standard output. More...
#include <robottestingframework/ConsoleListener.h>
Inheritance diagram for robottestingframework::ConsoleListener:Public Member Functions | |
| ConsoleListener (bool verbose=false) | |
| ConsoleListener constructor. More... | |
| void | hideUncriticalMessages () |
| hideUncriticalMessages hides the tests report messages and only shows the test assertion failure and error messages. More... | |
| virtual | ~ConsoleListener () |
| ConsoleListener destructor. More... | |
| void | addReport (const Test *test, TestMessage msg) override |
| This is called to report any arbitrary message from tests. More... | |
| void | addError (const Test *test, TestMessage msg) override |
| This is called when an error occurred during test run. More... | |
| void | addFailure (const Test *test, TestMessage msg) override |
| This is called when a failure occurred during test run. More... | |
| void | startTest (const Test *test) override |
| This is called when a Test is started. More... | |
| void | endTest (const Test *test) override |
| This is called when a Test is finished. More... | |
| void | startTestSuite (const Test *test) override |
| This is called when a TestSuite is started. More... | |
| void | endTestSuite (const Test *test) override |
| This is called when a TestSuite is finished. More... | |
| void | startTestRunner () override |
| This is called when the TestRunner is started. More... | |
| void | endTestRunner () override |
| This is called when the TestRunner is finished. More... | |
Public Member Functions inherited from robottestingframework::TestListener | |
| TestListener ()=default | |
| TestListener constructor. More... | |
| virtual | ~TestListener ()=default |
| TestListener destructor. More... | |
| virtual void | addReport (const Test *test, TestMessage msg) |
| This is called to report any arbitrary message from tests. More... | |
| virtual void | addError (const Test *test, TestMessage msg) |
| This is called when an error occurred during test run. More... | |
| virtual void | addFailure (const Test *test, TestMessage msg) |
| This is called when a failure occurred during test run. More... | |
| virtual void | startTest (const Test *test) |
| This is called when a Test is started. More... | |
| virtual void | endTest (const Test *test) |
| This is called when a Test is finished. More... | |
| virtual void | startTestSuite (const Test *test) |
| This is called when a TestSuite is started. More... | |
| virtual void | endTestSuite (const Test *test) |
| This is called when a TestSuite is finished. More... | |
| virtual void | startTestRunner () |
| This is called when the TestRunner is started. More... | |
| virtual void | endTestRunner () |
| This is called when the TestRunner is finished. More... | |
Private Attributes | |
| bool | verbose |
| bool | hideUncritical |
class ConsoleListener listens to any messages reported by the tests during the test run, formates them and print them to the standard output.
Here's an example of using a ConsoleListener:
Definition at line 38 of file ConsoleListener.h.
| robottestingframework::ConsoleListener::ConsoleListener | ( | bool | verbose = false | ) |
ConsoleListener constructor.
| verbose | enables the verbose mode. If true, the source file and the line number where the messages are issued by the tests will be written to the standard output. The verbose mode is disabled by default. |
|
virtual |
ConsoleListener destructor.
|
overridevirtual |
This is called when an error occurred during test run.
| test | pointer to the corresponding test |
| msg | correspoinding error message |
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when a failure occurred during test run.
| test | pointer to the corresponding test |
| msg | correspoinding failure message |
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called to report any arbitrary message from tests.
| test | pointer to the corresponding test |
| msg | correspoinding error message |
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when a Test is finished.
| test | pointer to the corresponding test |
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when the TestRunner is finished.
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when a TestSuite is finished.
| test | pointer to the corresponding test |
Reimplemented from robottestingframework::TestListener.
| void robottestingframework::ConsoleListener::hideUncriticalMessages | ( | ) |
hideUncriticalMessages hides the tests report messages and only shows the test assertion failure and error messages.
|
overridevirtual |
This is called when a Test is started.
| test | pointer to the corresponding test |
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when the TestRunner is started.
Reimplemented from robottestingframework::TestListener.
|
overridevirtual |
This is called when a TestSuite is started.
| test | pointer to the corresponding test |
Reimplemented from robottestingframework::TestListener.
|
private |
Definition at line 119 of file ConsoleListener.h.
|
private |
Definition at line 118 of file ConsoleListener.h.