Pipe --list* through reporters

This allows us to provide machine-readable listings through the
XMLReporter and it will also allow users to define their own listing
format that does whatever their own tools need.
This commit is contained in:
Martin Hořeňovský
2019-06-21 23:15:08 +02:00
parent 0f39438aae
commit 85b129c741
5 changed files with 149 additions and 88 deletions

View File

@@ -10,9 +10,29 @@
#include "catch_config.hpp"
#include <set>
#include <string>
namespace Catch {
bool list( std::shared_ptr<Config> const& config );
struct IStreamingReporter;
struct ReporterDescription {
std::string name, description;
};
struct TagInfo {
void add(std::string const& spelling);
std::string all() const;
std::set<std::string> spellings;
std::size_t count = 0;
};
struct testClassInfo {};
bool list( IStreamingReporter& reporter, std::shared_ptr<Config> const& config );
} // end namespace Catch