Runner.hpp File Reference
Include dependency graph for Runner.hpp:
This graph shows which files directly or indirectly include this file:
Typedefs | |
typedef std::function< FilteringResult(std::string const &fixtureName, std::string const &scenarioName)> | rili::test::runner::Filter2 |
typedef std::function< FilteringResult(std::string const &fixtureName, std::string const &scenarioName, const std::string &typeName)> | rili::test::runner::Filter3 |
typedef std::function< void(rili::test::TestStorage::iterator begin, rili::test::TestStorage::iterator end)> | rili::test::runner::Ordering |
Enumerations | |
enum | rili::test::runner::FilteringResult { Run, Skip, Disable } |
Functions | |
bool | rili::test::runner::run (Filter2 const &filter=defaultFilter, Ordering const &ordering=defaultOrdering) |
bool | rili::test::runner::run (Ordering const &ordering) |
bool | rili::test::runner::run (Filter3 const &filter, Ordering const &ordering=defaultOrdering) |
bool | rili::test::runner::runSingleTest (TestCreatorBase const &creator) |
Variables | |
Filter2 | rili::test::runner::defaultFilter |
Ordering | rili::test::runner::defaultOrdering |
Typedef Documentation
typedef std::function<FilteringResult(std::string const& fixtureName, std::string const& scenarioName)> rili::test::runner::Filter2 |
is function used to filter tests by case name and scenario name.
typedef std::function<FilteringResult(std::string const& fixtureName, std::string const& scenarioName, const std::string& typeName)> rili::test::runner::Filter3 |
is function used to filter tests by case name, scenario name and type name.
typedef std::function<void(rili::test::TestStorage::iterator begin, rili::test::TestStorage::iterator end)> rili::test::runner::Ordering |
is function used to reorder tests.
Enumeration Type Documentation
|
strong |
is enum which can be used to choose if test should run, be skipped or disabled
Function Documentation
bool rili::test::runner::run | ( | Filter2 const & | filter = defaultFilter , |
Ordering const & | ordering = defaultOrdering |
||
) |
is used to run one time all tests.
- Parameters
-
filter is function which should return if test should be run normally, marked as disabled or skipped ordering is function used to reorder tests before run - default one will sort them by name
- Returns
- regression result - true if pass. false in case of any failure
bool rili::test::runner::run | ( | Ordering const & | ordering | ) |
is used to run one time all tests.
- Parameters
-
ordering is function used to reorder tests before run - default one will sort them by name
- Returns
- regression result - true if pass. false in case of any failure
bool rili::test::runner::run | ( | Filter3 const & | filter, |
Ordering const & | ordering = defaultOrdering |
||
) |
is used to run one time all tests.
- Parameters
-
filter is function which should return if test should be run normally, marked as disabled or skipped ordering is function used to reorder tests before run - default one will sort them by name
- Returns
- regression result - true if pass. false in case of any failure
bool rili::test::runner::runSingleTest | ( | TestCreatorBase const & | creator | ) |
run single test
- Parameters
-
creator is test creator
- Returns
- test result - true if pass. false in case of any failure
Variable Documentation
Filter2 rili::test::runner::defaultFilter |
defaultFilter is function used by default to filter tests - it mark as disabled these tests which case name starts with"DISABLED_", otherwise mark test to run.
Ordering rili::test::runner::defaultOrdering |
defaultOrdering is function used by default to apply order for tests - it sort them by scanario name + case name + type name