1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include <catch2/reporters/catch_reporter_streaming_base.hpp>
- #include <catch2/reporters/catch_reporter_registrars.hpp>
- #include <iostream>
- #include <utility>
- class TestReporter : public Catch::StreamingReporterBase {
- public:
- TestReporter(Catch::ReporterConfig&& _config):
- StreamingReporterBase(std::move(_config)) {
- std::cout << "TestReporter constructed\n";
- }
- static std::string getDescription() {
- return "Reporter for testing casing handling in reporter registration/selection";
- }
- ~TestReporter() override;
- };
- TestReporter::~TestReporter() = default;
- CATCH_REGISTER_REPORTER("testReporterCASED", TestReporter)
|