Default implementation of a test run observer. More...
Default implementation of a test run observer.
This default implementation is directly calling a formatter when called.
By default, it is coupled with a ConsoleOutputFormatter and the output target set to use the LogManager for live logging. Final logging is disabled.
|
noexcept |
Default constructor.
|
virtual |
Destructor.
void nkDebug::DefaultTestObserver::setLiveFormatter | ( | OutputFormatter * | formatter | ) |
Sets the formatter to route the logging to. This method concerns live logging, logged right when it happens.
formatter | The formatter to use. |
void nkDebug::DefaultTestObserver::setFinalFormatter | ( | OutputFormatter * | formatter | ) |
Sets the formatter to route the logging to. This method concerns the final logging, that gets cached and logged at once in the end.
formatter | The formatter to use. |
void nkDebug::DefaultTestObserver::setLiveOutput | ( | OutputTarget * | target | ) |
Sets the output to route the logging to. This method concerns live logging, logged right when it happens.
target | The target to use. |
void nkDebug::DefaultTestObserver::setFinalOutput | ( | OutputTarget * | target | ) |
Sets the output to route the logging to. This method concerns live logging, logged right when it happens.
target | The target to use. Set to nullptr to prevent it from logging at the end of the run. |
|
overridevirtual |
Called when a run is about to start.
params | The test parameters passed for the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a run is fully done.
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass is being started for a test run.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass is being bypassed.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass has finished running.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass' test function is being launched.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass's function is bypassed.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass' test function succeeds.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.
|
overridevirtual |
Called when a TestClass' test function fails.
info | Current information about the run. |
Reimplemented from nkDebug::TestObserver.