62 void doIt (
const string cmdline)
64 cout <<
"Testing invocation with cmdline: " << cmdline <<
"..." << endl;
68 const string testID = optparser.
getTestID();
69 cout <<
"--> Testgroup=" << optparser.
getTestgroup() << endl;
70 cout <<
"--> Test-ID =" << (isnil(testID)?
"--missing--" : testID ) << endl;
71 cout <<
"--> remaining=" << args << endl;
74 void noOptions() {
doIt (
""); }
75 void help() {
doIt (
"--help"); }
76 void groupID() {
doIt (
"--group TestGroupID"); }
77 void singleTest() {
doIt (
" SingleTestID"); }
78 void groupFilter1() {
doIt (
" SingleTestID --group TestGroupID"); }
79 void groupFilter2() {
doIt (
" --group TestGroupID SingleTestID "); }
80 void additionalCmd() {
doIt (
" --group TestGroupID SingleTestID spam eggs"); }
81 void additionalCmd2() {
doIt (
"\t\tSingleTestID spam --group TestGroupID \t --eggs"); }
invokes the TestOption parser for various example commandlines
Commandline options for our unittest test-suite executable.
void doIt(const string cmdline)
Abstract Base Class for all testcases.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
const string getTestgroup()
Support for selecting and configuring testcases via commandline arguments.
Abstraction of the usual int argc, int** argv-Commandline, to be able to treat it as a vector of stri...