Allow only 1 reporter at a time

This commit is contained in:
Martin Hořeňovský
2018-04-07 12:05:29 +02:00
parent d2d8455b57
commit 414dcae34a
10 changed files with 67 additions and 121 deletions

View File

@@ -55,7 +55,13 @@ namespace Catch {
std::string name;
std::string processName;
std::vector<std::string> reporterNames;
#ifndef CATCH_CONFIG_DEFAULT_REPORTER
#define CATCH_CONFIG_DEFAULT_REPORTER "console"
#endif
std::string reporterName = CATCH_CONFIG_DEFAULT_REPORTER;
#undef CATCH_CONFIG_DEFAULT_REPORTER
std::vector<std::string> testsOrTags;
std::vector<std::string> sectionsToRun;
};
@@ -76,8 +82,8 @@ namespace Catch {
bool listReporters() const;
std::string getProcessName() const;
std::string const& getReporterName() const;
std::vector<std::string> const& getReporterNames() const;
std::vector<std::string> const& getTestsOrTags() const;
std::vector<std::string> const& getSectionsToRun() const override;