ZeroErr
|
IReporter is an interface that is used to report the test results. You can create a new reporter by inheriting this class and implementing the virtual functions. The following events will be called once it happens during testing. More...
#include <unittest.h>
Public Member Functions | |
virtual | ~IReporter ()=default |
virtual std::string | getName () const =0 |
virtual void | testStart ()=0 |
virtual void | testCaseStart (const TestCase &tc, std::stringbuf &sb)=0 |
virtual void | testCaseEnd (const TestCase &tc, std::stringbuf &sb, const TestContext &ctx, int type)=0 |
virtual void | subCaseStart (const TestCase &tc, std::stringbuf &sb)=0 |
virtual void | subCaseEnd (const TestCase &tc, std::stringbuf &sb, const TestContext &ctx, int type)=0 |
virtual void | testEnd (const TestContext &tc)=0 |
IReporter (UnitTest &ut) | |
Static Public Member Functions | |
static IReporter * | create (const std::string &name, UnitTest &ut) |
Create the reporter object with the given name. More... | |
Protected Attributes | |
UnitTest & | ut |
IReporter is an interface that is used to report the test results. You can create a new reporter by inheriting this class and implementing the virtual functions. The following events will be called once it happens during testing.
|
virtualdefault |
|
inline |
Create the reporter object with the given name.
name | The name of the reporter. Available reporters are: console, xml. |
ut | The unit test object that will be used to configure the test. |
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
pure virtual |
Implemented in zeroerr::XmlReporter, and zeroerr::ConsoleReporter.
|
protected |