TestMain.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. #define CATCH_CONFIG_MAIN
  9. #include "catch.hpp"
  10. // These reporters are not included in the single include, so must be included separately in the main file
  11. #include "reporters/catch_reporter_teamcity.hpp"
  12. #include "reporters/catch_reporter_tap.hpp"
  13. #include "reporters/catch_reporter_automake.hpp"
  14. #include "reporters/catch_reporter_sonarqube.hpp"
  15. // Some example tag aliases
  16. CATCH_REGISTER_TAG_ALIAS( "[@nhf]", "[failing]~[.]" )
  17. CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" )
  18. #ifdef __clang__
  19. # pragma clang diagnostic ignored "-Wpadded"
  20. # pragma clang diagnostic ignored "-Wweak-vtables"
  21. # pragma clang diagnostic ignored "-Wc++98-compat"
  22. #endif
  23. struct TestListener : Catch::TestEventListenerBase {
  24. using TestEventListenerBase::TestEventListenerBase; // inherit constructor
  25. };
  26. CATCH_REGISTER_LISTENER( TestListener )