MCPcopy Create free account
hub / github.com/cpputest/cpputest / help

Method help

src/CppUTest/CommandLineArguments.cpp:101–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101const char* CommandLineArguments::help() const
102{
103 return
104 "Thanks for using CppUTest.\n"
105 "\n"
106 "Options that do not run tests but query:\n"
107 " -h - this wonderful help screen. Joy!\n"
108 " -lg - print a list of group names, separated by spaces\n"
109 " -ln - print a list of test names in the form of group.name, separated by spaces\n"
110 "\n"
111 "Options that change the output format:\n"
112 " -c - colorize output, print green if OK, or red if failed\n"
113 " -v - verbose, print each test name as it runs\n"
114 " -vv - very verbose, print internal information during test run\n"
115 "\n"
116 "Options that change the output location:\n"
117 " -oteamcity - output to xml files (as the name suggests, for TeamCity)\n"
118 " -ojunit - output to JUnit ant plugin style xml files (for CI systems)\n"
119 " -k package name - Add a package name in JUnit output (for classification in CI systems)\n"
120 "\n"
121 "\n"
122 "Options that control which tests are run:\n"
123 " -g group - only run test whose group contains the substring group\n"
124 " -n name - only run test whose name contains the substring name\n"
125 " -t group.name - only run test whose name contains the substring group and name\n"
126 " -sg group - only run test whose group exactly matches the string group\n"
127 " -sn name - only run test whose name exactly matches the string name\n"
128 " -xg group - exclude tests whose group contains the substring group (v3.8)\n"
129 " -xn name - exclude tests whose name contains the substring name (v3.8)\n"
130 " TEST(group,name) - only run test whose group and name matches the strings group and name.\n"
131 " This can be used to copy-paste output from the -v option on the command line.\n"
132 "\n"
133 "Options that control how the tests are run:\n"
134 " -p - run tests in a separate process.\n"
135 " -b - run the tests backwards, reversing the normal way\n"
136 " -s [seed] - shuffle tests randomly. Seed is optional\n"
137 " -r# - repeat the tests some number (#) of times, or twice if # is not specified.\n";
138}
139
140bool CommandLineArguments::needHelp() const
141{

Callers 1

parseArgumentsMethod · 0.80

Calls

no outgoing calls

Tested by 1

parseArgumentsMethod · 0.64