OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2_INCLUDE_OTEST2_SCENARIOSUITE_H_
21 #define OTest2_INCLUDE_OTEST2_SCENARIOSUITE_H_
51 const std::string& name_,
72 const Context& context_)
const override;
74 const Context& context_)
const noexcept
override;
76 const Context& context_)
const noexcept
override;
82 virtual bool isEmpty()
const noexcept;
Generic interface of a runner filter.
Generic interface of a scenario container.
virtual ~ScenarioSuite()
Dtor.
A scenario object representing one test suite.
virtual void appendScenario(ScenarioPtr scenario_) override
Append new sub-scenario into the container.
virtual ScenarioPtr filterScenario(TagsStack &tags_, ScenarioContainerPtr parent_, const RunnerFilter &filter_) const override
Filter the scenario.
ScenarioSuite & operator=(const ScenarioSuite &)=delete
virtual ScenarioIterPtr getChildren() const override
Get iterator of children object.
virtual std::pair< std::string, ObjectRepeaterPtr > createRepeater(const Context &context_) const override
Create repeater object for testing object represented by this scenario object.
std::shared_ptr< ObjectRepeaterFactory > ObjectRepeaterFactoryPtr
Shared pointer of the object repeater factories.
ScenarioSuite(const std::string &name_, const Tags &tags_, ObjectRepeaterFactoryPtr repeater_factory_)
Create scenario object of a test suite.
std::shared_ptr< ScenarioIter > ScenarioIterPtr
Shared pointer of the scenario iter interface.
std::shared_ptr< Scenario > ScenarioPtr
Shared pointer of the scenario object.
virtual void enterObject(const Context &context_) const noexcept override
Enter the testing object.
virtual void leaveObject(const Context &context_) const noexcept override
Report leaving of the testing object.
virtual bool isEmpty() const noexcept
Check whether the container is empty.
std::shared_ptr< ScenarioContainer > ScenarioContainerPtr
Shared pointer to a scenario container.