diff options
| author | Martin Hořeňovský | 2019-12-08 11:31:47 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-12-08 11:31:47 +0100 |
| commit | 248f922465309caa549c126f795f909e8cd69a1e (patch) | |
| tree | 4e146c298928092f79076c9c6261f48fcf0f4fcf /tests/SelfTest/TestMain.cpp | |
| parent | 91ee07e08c5a72536834960ecf2527fa90244046 (diff) | |
| download | catch3-248f922465309caa549c126f795f909e8cd69a1e.tar.gz | |
Cleanup impl and main from the main header
Diffstat (limited to 'tests/SelfTest/TestMain.cpp')
| -rw-r--r-- | tests/SelfTest/TestMain.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/SelfTest/TestMain.cpp b/tests/SelfTest/TestMain.cpp index 4bb6d7aa..c7cc5fd0 100644 --- a/tests/SelfTest/TestMain.cpp +++ b/tests/SelfTest/TestMain.cpp @@ -1,34 +1,28 @@ /* - * Created by Phil on 22/10/2010. - * Copyright 2010 Two Blue Cubes Ltd - * * 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) */ -#define CATCH_CONFIG_MAIN -#include <catch2/catch.hpp> - -// These reporters are not included in the single include, so must be included separately in the main file -#include <catch2/reporters/catch_reporter_teamcity.hpp> -#include <catch2/reporters/catch_reporter_tap.hpp> -#include <catch2/reporters/catch_reporter_automake.hpp> -#include <catch2/reporters/catch_reporter_sonarqube.hpp> - +#include <catch2/catch_tag_alias_autoregistrar.h> // 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 +#include <catch2/reporters/catch_reporter_bases.hpp> + struct TestListener : Catch::TestEventListenerBase { - using TestEventListenerBase::TestEventListenerBase; // inherit constructor + using TestEventListenerBase::TestEventListenerBase; }; + +#include <catch2/catch_reporter_registrars.hpp> + CATCH_REGISTER_LISTENER( TestListener ) +#include <catch2/catch_default_main.hpp> |