KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This class holds an array of test cases and run them one by one in its Run method. More...
#include <test_suite.h>
Public Types | |
Type Definitions | |
typedef std::vector< TestCase * > | TestCasesContainerType |
Public Member Functions | |
Life Cycle | |
TestSuite ()=delete | |
Default constructor is deleted becuase the Name should always passed to the constructor. More... | |
TestSuite (TestSuite const &rOther)=delete | |
The TestSuite cannot be copied to avoid duplications. More... | |
TestSuite (std::string const &Name) | |
The constructor to be called. More... | |
virtual | ~TestSuite () |
Destructor. More... | |
Operators | |
TestSuite & | operator= (TestSuite const &rOther)=delete |
Preventing the assignment of the test suites. More... | |
Operations | |
void | AddTestCase (TestCase *pTestCase) |
void | Reset () override |
void | ResetResult () override |
void | Run () override |
void | Profile () override |
void | Enable () override |
void | Disable () override |
void | Select () override |
void | UnSelect () override |
Input and output | |
virtual std::string | Info () const override |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::Testing::TestCase | |
TestCase ()=delete | |
TestCase cannot be created without a name. More... | |
TestCase (TestCase const &rOther)=delete | |
The TestCase cannot be copied to avoid duplications. More... | |
TestCase (std::string const &Name) | |
The constructor to be called. More... | |
virtual | ~TestCase () |
Destructor. More... | |
TestCase & | operator= (TestCase const &rOther)=delete |
Preventing the assignment of the tests. More... | |
const std::string & | Name () const |
const TestCaseResult & | GetResult () const |
void | SetResult (TestCaseResult const &TheResult) |
void | SetResultOutput (std::string const &TheResultOutput) |
virtual bool | IsEnabled () const |
virtual bool | IsDisabled () const |
virtual bool | IsSelected () const |
virtual bool | IsDistributedTest () const |
virtual void | Setup () |
virtual void | TearDown () |
This class holds an array of test cases and run them one by one in its Run method.
this class implements a composite pattern. Derived from TestCase and has an array pointers to the TestCase to be run. The Run and Profile methods are overridden to call the corresponidng methods of the TestCases.
typedef std::vector<TestCase*> Kratos::Testing::TestSuite::TestCasesContainerType |
|
delete |
Default constructor is deleted becuase the Name should always passed to the constructor.
|
delete |
The TestSuite cannot be copied to avoid duplications.
|
explicit |
The constructor to be called.
|
virtual |
Destructor.
void Kratos::Testing::TestSuite::AddTestCase | ( | TestCase * | pTestCase | ) |
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Turn back information as a string.
Reimplemented from Kratos::Testing::TestCase.
Preventing the assignment of the test suites.
|
overridevirtual |
Print object's data.
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Print information about this object.
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.
|
overridevirtual |
Reimplemented from Kratos::Testing::TestCase.