Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-10-30 12:47:04 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-30 12:47:04 +0300
commit99dd6acc7954fa3c7c1086b4658c78f13d6fea61 (patch)
treefc20e29680fb0baa9e9bbd4c78a8de0a2075e4db /tests
parentd63ae1c6085f02fa64b250b01071a3ec94406504 (diff)
Make verboseconsole the default reporter.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/catch_main.hpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 2dfe05dad..9453fa314 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -10,7 +10,7 @@ target_include_directories(Catch2 INTERFACE ${CMAKE_CURRENT_LIST_DIR})
add_library(Catch2::Catch2 ALIAS Catch2)
include(Catch)
-set(CATCH_EXTRA_ARGS "-r usefulconsole" CACHE STRING "Extra arguments for catch2 test suites.")
+set(CATCH_EXTRA_ARGS "" CACHE STRING "Extra arguments for catch2 test suites.")
add_library(test_common INTERFACE)
target_compile_definitions(test_common INTERFACE TEST_DATA_DIR=R"\(${TEST_DATA_DIR}\)" CATCH_CONFIG_FAST_COMPILE)
diff --git a/tests/catch_main.hpp b/tests/catch_main.hpp
index e49ff40b4..5ab71fdd7 100644
--- a/tests/catch_main.hpp
+++ b/tests/catch_main.hpp
@@ -3,6 +3,7 @@
#define CATCH_CONFIG_EXTERNAL_INTERFACES
#define CATCH_CONFIG_MAIN
+#define CATCH_CONFIG_DEFAULT_REPORTER "verboseconsole"
#include <catch2/catch.hpp>
namespace Catch {
@@ -45,7 +46,9 @@ struct VerboseConsoleReporter : public ConsoleReporter {
ConsoleReporter::testCaseEnded(stats);
}
};
+
CATCH_REGISTER_REPORTER( "verboseconsole", VerboseConsoleReporter )
-}
+
+} // namespace Catch
#endif // CATCH_MAIN