1#ifndef JON_TEST_TEST_RUNNER_H
2#define JON_TEST_TEST_RUNNER_H
15class TestSuiteInterface;
23 std::map<std::string, TestSuiteInterface*>
suites;
41 const char*
const name,
50 const std::string& test
Count of tests run, and fails.
Interface for logging events while running tests.
Singleton that collects all TEST_SUITE()s, to run on demand.
bool isValid(const std::string &test) const
Determine if test can be run as one of: a valid Test Suite, or Test Suite:Test Case.
std::vector< std::string > TestNames
List of Test Names as: "<suite>" or "<suite>:<case>".
Count run(Logger &logger) const
Run all tests that have been add()ed.
void listTestSuites(std::ostream &out) const
List available Test Suites to out.
void add(const char *const name, TestSuiteInterface *const suite)
Add the suite by name.
static TestRunner & get()
Get the singleton.
void listTestCases(std::ostream &out) const
List available Test Cases to out.
std::map< std::string, TestSuiteInterface * > suites
Mapping of test suite name to test suite.
Interface for Test Suites.