cxxtools::unit::BriefReporter Class Reference

#include <cxxtools/unit/reporter.h>

Inheritance diagram for cxxtools::unit::BriefReporter:
cxxtools::unit::Reporter

Public Member Functions

 BriefReporter (std::ostream *out=&std::cout)
virtual ~BriefReporter ()
void setOutput (std::ostream &out)
virtual void reportStart (const TestContext &test)
 Start notification.
virtual void reportFinish (const TestContext &test)
 Finished notification.
virtual void reportMessage (const std::string &msg)
 Message notification.
virtual void reportSuccess (const TestContext &test)
 Success notification.
virtual void reportAssertion (const TestContext &test, const Assertion &a)
 Assertion notification.
virtual void reportException (const TestContext &test, const std::exception &ex)
 Exception notification.
virtual void reportError (const TestContext &test)
 Error notification.
virtual void reportSkip (const TestContext &test)
 Skipped notification.
- Public Member Functions inherited from cxxtools::unit::Reporter
virtual ~Reporter ()
 Destructor.

Additional Inherited Members

- Public Attributes inherited from cxxtools::unit::Reporter
Signal< Reporter & > destroyed
- Protected Member Functions inherited from cxxtools::unit::Reporter
 Reporter ()
 Constructs a reporter.

Constructor & Destructor Documentation

cxxtools::unit::BriefReporter::BriefReporter ( std::ostream *  out = &std::cout)
explicit
virtual cxxtools::unit::BriefReporter::~BriefReporter ( )
virtual

Member Function Documentation

virtual void cxxtools::unit::BriefReporter::reportAssertion ( const TestContext ,
const Assertion  
)
virtual

Assertion notification.

This method is called when a an assertion failed during a test. an assertion fails when a user defined condition is not met.

Parameters
testThe failed test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportError ( const TestContext )
virtual

Error notification.

This method is called when a an unknown error occurs during a test.

Parameters
testThe failed test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportException ( const TestContext ,
const std::exception &   
)
virtual

Exception notification.

This method is called when a an exception failed during a test. An exception usually means that an error occured that was even u nexpected in a test scenario

Parameters
testThe failed test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportFinish ( const TestContext )
virtual

Finished notification.

This method is called when a test has finished. Every test sends this signal at its end no matter if it failed or succeeded.

Parameters
testThe finished test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportMessage ( const std::string &  )
virtual

Message notification.

This method is called when a test has produced an informational message.

Parameters
msgThe message

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportSkip ( const TestContext )
virtual

Skipped notification.

This method is called when was skipped.

Parameters
testThe skipped test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportStart ( const TestContext )
virtual

Start notification.

This method is called when a test has started. Every test sends this signal at startup.

Parameters
testThe started test

Reimplemented from cxxtools::unit::Reporter.

virtual void cxxtools::unit::BriefReporter::reportSuccess ( const TestContext )
virtual

Success notification.

This method is called when a test was successful.

Parameters
testThe succeeded test

Reimplemented from cxxtools::unit::Reporter.

void cxxtools::unit::BriefReporter::setOutput ( std::ostream &  out)

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