1 /* 2 * Created by Phil on 22/10/2010. 3 * Copyright 2010 Two Blue Cubes Ltd 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 9 #define CATCH_CONFIG_MAIN 10 #include "catch.hpp" 11 12 // These reporters are not included in the single include, so must be included separately in the main file 13 #include "reporters/catch_reporter_teamcity.hpp" 14 #include "reporters/catch_reporter_tap.hpp" 15 #include "reporters/catch_reporter_automake.hpp" 16 #include "reporters/catch_reporter_sonarqube.hpp" 17 18 19 // Some example tag aliases 20 CATCH_REGISTER_TAG_ALIAS( "[@nhf]", "[failing]~[.]" ) 21 CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" ) 22 23 24 #ifdef __clang__ 25 # pragma clang diagnostic ignored "-Wpadded" 26 # pragma clang diagnostic ignored "-Wweak-vtables" 27 # pragma clang diagnostic ignored "-Wc++98-compat" 28 #endif 29 30 struct TestListener : Catch::TestEventListenerBase { 31 using TestEventListenerBase::TestEventListenerBase; // inherit constructor 32 }; 33 CATCH_REGISTER_LISTENER( TestListener ) 34 35