31 #ifndef TESTHELPER_SUITE_H 32 #define TESTHELPER_SUITE_H 43 using opt_uint64 = std::optional<uint64_t>;
49 typedef std::vector<string> & Arg;
65 Suite (
string groupID, opt_uint64 seed);
66 bool run (Arg cmdline);
68 int getExitCode ()
const;
72 static const int TEST_OK;
Suite(string groupID, opt_uint64 seed)
create a suite comprised of all the testcases previously registered with this this group...
static const int EXCEPTION_THROWN
exit code returned when any individual test threw
bool run(Arg cmdline)
run all testcases contained in this Suite.
static const string ALLGROUP
"magic" groupID containing all registered testcases
interface: generic testcase creating functor.
void describe()
print to stdout an enumeration of all testcases in this suite, in a format suitable for use with Ceht...
Enables running a collection of tests.
static void enrol(Launcher *test, string testID, string groups)
register the given test-launcher, so it can be later accessed either as a member of one of the specif...