API Documentation
Public Member Functions | List of all members
nkDebug::NunitOutputFormatter Class Referencefinal

Implementation formatting test results in nUnit 3. More...

Inheritance diagram for nkDebug::NunitOutputFormatter:
nkDebug::OutputFormatter

Public Member Functions

 NunitOutputFormatter () noexcept
 
virtual ~NunitOutputFormatter ()
 
virtual nkMemory::String formatRunLaunch (const TestRunParameters &params) override
 
virtual nkMemory::String formatRunEnd () override
 
virtual nkMemory::String formatClassLaunch (const TestClassObserverInformation &info) override
 
virtual nkMemory::String formatClassBypass (const TestClassObserverInformation &info) override
 
virtual nkMemory::String formatClassEnd (const TestClassObserverInformation &info) override
 
virtual nkMemory::String formatTestLaunch (const TestFunctionObserverInformation &info) override
 
virtual nkMemory::String formatTestBypass (const TestFunctionObserverInformation &info) override
 
virtual nkMemory::String formatTestSuccess (const TestFunctionObserverInformation &info) override
 
virtual nkMemory::String formatTestFailure (const TestFunctionObserverInformation &info) override
 
- Public Member Functions inherited from nkDebug::OutputFormatter
 OutputFormatter () noexcept
 
virtual ~OutputFormatter ()
 

Detailed Description

Implementation formatting test results in nUnit 3.

Constructor & Destructor Documentation

◆ NunitOutputFormatter()

nkDebug::NunitOutputFormatter::NunitOutputFormatter ( )
noexcept

Default constructor.

◆ ~NunitOutputFormatter()

virtual nkDebug::NunitOutputFormatter::~NunitOutputFormatter ( )
virtual

Destructor.

Member Function Documentation

◆ formatRunLaunch()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatRunLaunch ( const TestRunParameters params)
overridevirtual

Called when a run is starting.

Parameters
paramsThe parameters provided for the run.
Returns
A formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatRunEnd()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatRunEnd ( )
overridevirtual

Called when a run is ending.

Returns
A formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatClassLaunch()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatClassLaunch ( const TestClassObserverInformation info)
overridevirtual

Called when a TestClass is being prepared to run its functions.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatClassBypass()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatClassBypass ( const TestClassObserverInformation info)
overridevirtual

Called when a TestClass is being bypassed.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatClassEnd()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatClassEnd ( const TestClassObserverInformation info)
overridevirtual

Called when a TestClass finished running its functions.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatTestLaunch()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatTestLaunch ( const TestFunctionObserverInformation info)
overridevirtual

Called when a TestClass' test function is starting.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatTestBypass()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatTestBypass ( const TestFunctionObserverInformation info)
overridevirtual

Called when a TestClass' test function is bypassed.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatTestSuccess()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatTestSuccess ( const TestFunctionObserverInformation info)
overridevirtual

Called when a TestClass' test function is succeeding.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.

◆ formatTestFailure()

virtual nkMemory::String nkDebug::NunitOutputFormatter::formatTestFailure ( const TestFunctionObserverInformation info)
overridevirtual

Called when a TestClass' test function is failing.

Parameters
infoCurrent information about the run.
Returns
Returns a formatted string to use for logging.

Reimplemented from nkDebug::OutputFormatter.


The documentation for this class was generated from the following file: