mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-29 16:53:30 +01:00
33ad1ee2ac
The base was also renamed from `TestEventListenerBase` to `EventListenerBase`, and modified to derive directly from the reporter interface, rather than deriving from `StreamingReporterBase`.
27 lines
786 B
C++
27 lines
786 B
C++
/*
|
|
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <catch2/catch_tag_alias_autoregistrar.hpp>
|
|
#include <catch2/reporters/catch_reporter_event_listener.hpp>
|
|
|
|
// Some example tag aliases
|
|
CATCH_REGISTER_TAG_ALIAS( "[@nhf]", "[failing]~[.]" )
|
|
CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" )
|
|
|
|
#ifdef __clang__
|
|
# pragma clang diagnostic ignored "-Wpadded"
|
|
# pragma clang diagnostic ignored "-Wweak-vtables"
|
|
# pragma clang diagnostic ignored "-Wc++98-compat"
|
|
#endif
|
|
|
|
|
|
struct TestListener : Catch::EventListenerBase {
|
|
using EventListenerBase::EventListenerBase;
|
|
};
|
|
|
|
#include <catch2/catch_reporter_registrars.hpp>
|
|
|
|
CATCH_REGISTER_LISTENER( TestListener )
|