a singleton in charge of managing a collection of tests.
More...
#include </home/runner/work/tfel/tfel/include/TFEL/Tests/TestManager.hxx>
|
|
using | TestOutputPtr = std::shared_ptr<TestOutput> |
| | a simple alias
|
|
using | TestPtr = std::shared_ptr<Test> |
| | a simple alias
|
a singleton in charge of managing a collection of tests.
◆ addTest()
| void tfel::tests::TestManager::addTest |
( |
const std::string & | , |
|
|
TestPtr | ) |
add a test to the specified test suite
- Parameters
-
| [in] | g | group of the test |
| t | test to be added |
◆ addTestOutput() [1/6]
| void tfel::tests::TestManager::addTestOutput |
( |
const std::string & | | ) |
|
add a test output to the specified file
- Parameters
-
◆ addTestOutput() [2/6]
| void tfel::tests::TestManager::addTestOutput |
( |
const std::string & | , |
|
|
const std::string & | ) |
add a test output to the specified file
- Parameters
-
| [in] | n | name of the test suite |
| [in] | f | file name |
◆ addTestOutput() [3/6]
| void tfel::tests::TestManager::addTestOutput |
( |
const std::string & | , |
|
|
std::ostream & | , |
|
|
const bool | = true ) |
add a test output to the specified test suite
- Parameters
-
| [in] | n | name of the test suite |
| [in] | o | output to be added |
| [in] | b | colourised output |
◆ addTestOutput() [4/6]
add a test output to the specified test suite
- Parameters
-
| n | name of the test suite |
| o | output to be added |
◆ addTestOutput() [5/6]
| void tfel::tests::TestManager::addTestOutput |
( |
std::ostream & | , |
|
|
const bool | = true ) |
add a test output
- Parameters
-
| o | output to be added |
| [in] | b | colourised output |
◆ addTestOutput() [6/6]
add a test output
- Parameters
-
◆ addXMLTestOutput()
| void tfel::tests::TestManager::addXMLTestOutput |
( |
const std::string & | | ) |
|
add a test output to the specified file
- Parameters
-
◆ execute()
execute registred tests
- Returns
- the results of all tests
◆ getTestManager()
| TestManager & tfel::tests::TestManager::getTestManager |
( |
| ) |
|
|
static |
- Returns
- the unique instance of the class
◆ registerTestConstructionFailure() [1/2]
| void tfel::tests::TestManager::registerTestConstructionFailure |
( |
const std::string & | | ) |
|
|
noexcept |
method indicating that the construction of a test failed for an unknown reason
- Parameters
-
◆ registerTestConstructionFailure() [2/2]
| void tfel::tests::TestManager::registerTestConstructionFailure |
( |
const std::string & | , |
|
|
std::string_view | ) |
|
noexcept |
method indicating that the construction of a test failed for the given reason
- Parameters
-
| [in] | n | name of the test |
| [in] | msg | error message |
The documentation for this struct was generated from the following file: