|
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. 更多...
#include <unittest.h>


Public 成员函数 | |
| 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) | |
静态 Public 成员函数 | |
| static IReporter * | create (const std::string &name, UnitTest &ut) |
| Create the reporter object with the given name. | |
Protected 属性 | |
| 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 |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
pure virtual |
在 zeroerr::ConsoleReporter , 以及 zeroerr::XmlReporter 内被实现.
|
protected |