|
OTest2
A C++ testing framework
|
Test registry. More...
#include <registry.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| Registry (const Registry &)=delete | |
| Registry & | operator= (const Registry &)=delete |
| Registry () | |
| Ctor. More... | |
| ~Registry () | |
| Dtor. More... | |
| void | registerScenario (ScenarioPtr scenario_) |
| Register a scenario object. More... | |
| void | setTestName (const std::string &name_) |
| Set test name. More... | |
| ScenarioIterPtr | getTests (const RunnerFilter &filter_) const |
| Get iterator of test roots. More... | |
Static Public Member Functions | |
| static Registry & | instance (const std::string &domain_) |
| Access of the global instances. More... | |
|
delete |
| OTest2::Registry::Registry | ( | ) |
Ctor.
Definition at line 112 of file registry.cpp.
| OTest2::Registry::~Registry | ( | ) |
Dtor.
Definition at line 117 of file registry.cpp.
| ScenarioIterPtr OTest2::Registry::getTests | ( | const RunnerFilter & | filter_ | ) | const |
Get iterator of test roots.
| name_filter_ | Filter of testing objects |
Definition at line 132 of file registry.cpp.
|
static |
Access of the global instances.
The global instances are used for automatic registering of suites.
| domain_ | A test domain name. There can be several test domains. Each has own registry and can be run separately. The name is an unique identifier. |
Definition at line 143 of file registry.cpp.
| void OTest2::Registry::registerScenario | ( | ScenarioPtr | scenario_ | ) |
Register a scenario object.
| scenario_ | The scenario object |
Definition at line 121 of file registry.cpp.
| void OTest2::Registry::setTestName | ( | const std::string & | name_ | ) |
Set test name.
The test name is a name of the entire test as it's reported into the reporter.
| name_ | The test name |
Definition at line 126 of file registry.cpp.
1.8.17