Base class for test's output formatting. More...
Public Member Functions | |
OutputFormatter () noexcept | |
virtual | ~OutputFormatter () |
virtual nkMemory::String | formatRunLaunch (const TestRunParameters ¶ms) |
virtual nkMemory::String | formatRunEnd () |
virtual nkMemory::String | formatClassLaunch (const TestClassObserverInformation &info) |
virtual nkMemory::String | formatClassBypass (const TestClassObserverInformation &info) |
virtual nkMemory::String | formatClassEnd (const TestClassObserverInformation &info) |
virtual nkMemory::String | formatTestLaunch (const TestFunctionObserverInformation &info) |
virtual nkMemory::String | formatTestBypass (const TestFunctionObserverInformation &info) |
virtual nkMemory::String | formatTestSuccess (const TestFunctionObserverInformation &info) |
virtual nkMemory::String | formatTestFailure (const TestFunctionObserverInformation &info) |
Base class for test's output formatting.
To format results from tests, it is possible to implement this class. It can then be plugged within a test run's parameter structure.
|
noexcept |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Called when a run is starting.
params | The parameters provided for the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a run is ending.
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass is being prepared to run its functions.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass is being bypassed.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass finished running its functions.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass' test function is starting.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass' test function is bypassed.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass' test function is succeeding.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.
|
virtual |
Called when a TestClass' test function is failing.
info | Current information about the run. |
Reimplemented in nkDebug::ConsoleOutputFormatter, and nkDebug::NunitOutputFormatter.