Add --no-verbose option to HTML collector
[platform/core/test/security-tests.git] / src / framework / src / test_results_collector_console.cpp
index d60afa5..9ad0c04 100644 (file)
 
 namespace DPL {
 namespace Test {
-namespace {
-
-const std::string NO_VERBOSE_ARG = "--no-verbose";
-
-}
 
 ConsoleCollector::ConsoleCollector()
     : m_verbosity(true)
@@ -50,16 +45,12 @@ TestResultsCollectorBase* ConsoleCollector::Constructor()
 
 bool ConsoleCollector::ParseCollectorSpecificArg(const std::string& arg)
 {
-    if (arg != NO_VERBOSE_ARG)
-        return false;
-    m_verbosity=false;
-    return true;
+    return ParseCollectorNoVerboseArg(arg, m_verbosity);
 }
 
 std::string ConsoleCollector::CollectorSpecificHelp() const
 {
-    return NO_VERBOSE_ARG                          + " - turns off verbosity\n" +
-           std::string(NO_VERBOSE_ARG.size(), ' ') + "   verbosity turned on by default\n";
+    return COLLECTOR_NO_VERBOSE_HELP;
 }
 
 void ConsoleCollector::CollectCurrentTestGroupName(const std::string& name)