|
| Formater (std::ostream &logStream) |
|
virtual void | testDisabled (std::string const &fixture, std::string const &scenario) noexcept=0 |
|
virtual void | testSkipped (std::string const &fixture, std::string const &scenario) noexcept=0 |
|
virtual void | afterFailed (const std::string &reason) noexcept=0 |
|
virtual void | beforeFailed (const std::string &reason) noexcept=0 |
|
virtual void | createFailed (const std::string &reason) noexcept=0 |
|
virtual void | endTest () noexcept=0 |
|
virtual void | endTests () noexcept=0 |
|
virtual void | runFailed (const std::string &reason) noexcept=0 |
|
virtual void | startTest (std::string const &fixture, std::string const &scenario, std::string const &type) noexcept=0 |
|
virtual void | startTests () noexcept=0 |
|
virtual void | expectFailed (std::string const &file, std::string const &line, const std::string &content) noexcept=0 |
|
virtual void | unexpectedCall (std::string const &file, std::string const &line, void const *objectId, const std::string &signature, const std::string &arguments) noexcept=0 |
|
|
std::ostream & | stream () noexcept |
|
Using Formater as base class you can implement your own tests results output format - you can use as reference rili::test::BasicFormater.
rili::test::Formater::Formater |
( |
std::ostream & |
logStream | ) |
|
|
explicit |
constructor needs stream which will be used to flust formated test results
- Parameters
-
logStream | - used to flush results |
virtual void rili::test::Formater::afterFailed |
( |
const std::string & |
reason | ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::beforeFailed |
( |
const std::string & |
reason | ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::createFailed |
( |
const std::string & |
reason | ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::endTest |
( |
| ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::endTests |
( |
| ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::expectFailed |
( |
std::string const & |
file, |
|
|
std::string const & |
line, |
|
|
const std::string & |
content |
|
) |
| |
|
pure virtualnoexcept |
is called on any expectation failure
- Parameters
-
file | contain expectation file |
line | contain expectation line |
content | contain expectation reason or description |
Implemented in rili::test::BasicFormater.
virtual void rili::test::Formater::runFailed |
( |
const std::string & |
reason | ) |
|
|
pure virtualnoexcept |
virtual void rili::test::Formater::startTest |
( |
std::string const & |
fixture, |
|
|
std::string const & |
scenario, |
|
|
std::string const & |
type |
|
) |
| |
|
pure virtualnoexcept |
is called when single test exacution is started
- Parameters
-
fixture | - test fixture name |
scenario | - test scenario name |
type | - test scenario type name |
Implemented in rili::test::BasicFormater.
virtual void rili::test::Formater::startTests |
( |
| ) |
|
|
pure virtualnoexcept |
std::ostream& rili::test::Formater::stream |
( |
| ) |
|
|
protectednoexcept |
can be used by Formater derived implementations to flush test results
- Returns
- stream
virtual void rili::test::Formater::testDisabled |
( |
std::string const & |
fixture, |
|
|
std::string const & |
scenario |
|
) |
| |
|
pure virtualnoexcept |
is called when detected that test is disabled
- Parameters
-
fixture | test fixture name |
scenario | test scenario name |
Implemented in rili::test::BasicFormater.
virtual void rili::test::Formater::testSkipped |
( |
std::string const & |
fixture, |
|
|
std::string const & |
scenario |
|
) |
| |
|
pure virtualnoexcept |
is called when detected that test is skipped
- Parameters
-
fixture | test fixture name |
scenario | test scenario name |
Implemented in rili::test::BasicFormater.
virtual void rili::test::Formater::unexpectedCall |
( |
std::string const & |
file, |
|
|
std::string const & |
line, |
|
|
void const * |
objectId, |
|
|
const std::string & |
signature, |
|
|
const std::string & |
arguments |
|
) |
| |
|
pure virtualnoexcept |
is used when is detected unexpected call on mocked object
- Parameters
-
file | contain file path where mock was created |
line | contain line number where mock was created |
objectId | pointer to object (it this ) |
signature | stringified signature of mocked function |
arguments | arguments with which mocked method was called (if argument is converitable to string) |
Implemented in rili::test::BasicFormater.
The documentation for this class was generated from the following file: