mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 02:25:38 +02:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user