OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2_INCLUDE_OTEST2_TESTROOT_H_
21 #define OTest2_INCLUDE_OTEST2_TESTROOT_H_
43 const std::string& name_);
57 virtual std::string
getName()
const override;
Inteface of a testing object scheduled by the scenario (test, suite and test case)
virtual bool startUpObject(const Context &context_, int index_) override
Execute start-up function at specified index.
std::shared_ptr< Object > ObjectPtr
Shared pointer to a testing object.
virtual void tearDownObject(const Context &context_, int index_) override
Execute tear-down function at specified index.
std::shared_ptr< Scenario > ScenarioPtr
Shared pointer of the scenario object.
TestRoot & operator=(const TestRoot &)=delete
virtual std::string getName() const override
Get object's name.
TestRoot(const std::string &name_)
Ctor.
virtual void scheduleBody(const Context &context_, ScenarioPtr scenario_, ObjectPtr me_) override
Schedule body of the testing object.