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

Class CommandLineArguments

include/CppUTest/CommandLineArguments.h:37–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35class TestPlugin;
36
37class CommandLineArguments
38{
39public:
40 explicit CommandLineArguments(int ac, const char *const *av);
41 virtual ~CommandLineArguments();
42
43 bool parse(TestPlugin* plugin);
44 bool needHelp() const;
45 bool isVerbose() const;
46 bool isVeryVerbose() const;
47 bool isColor() const;
48 bool isListingTestGroupNames() const;
49 bool isListingTestGroupAndCaseNames() const;
50 bool isRunIgnored() const;
51 size_t getRepeatCount() const;
52 bool isShuffling() const;
53 bool isReversing() const;
54 size_t getShuffleSeed() const;
55 const TestFilter* getGroupFilters() const;
56 const TestFilter* getNameFilters() const;
57 bool isJUnitOutput() const;
58 bool isEclipseOutput() const;
59 bool isTeamCityOutput() const;
60 bool runTestsInSeperateProcess() const;
61 const SimpleString& getPackageName() const;
62 const char* usage() const;
63 const char* help() const;
64
65private:
66
67 enum OutputType
68 {
69 OUTPUT_ECLIPSE, OUTPUT_JUNIT, OUTPUT_TEAMCITY
70 };
71
72 int ac_;
73 const char *const *av_;
74
75 bool needHelp_;
76 bool verbose_;
77 bool veryVerbose_;
78 bool color_;
79 bool runTestsAsSeperateProcess_;
80 bool listTestGroupNames_;
81 bool listTestGroupAndCaseNames_;
82 bool runIgnored_;
83 bool reversing_;
84 bool shuffling_;
85 bool shufflingPreSeeded_;
86 size_t repeat_;
87 size_t shuffleSeed_;
88 TestFilter* groupFilters_;
89 TestFilter* nameFilters_;
90 OutputType outputType_;
91 SimpleString packageName_;
92
93 SimpleString getParameterField(int ac, const char *const *av, int& i, const SimpleString& parameterName);
94 void setRepeatCount(int ac, const char *const *av, int& index);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected