Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Piecemeal includes in extra-tests

Commit
2b696c43880cdfa25dc6d13799799774eed0bb5a
Author
Martin Hořeňovský ·
Parents
17281c09c3f6

Files · Download .tar.gz

Changes

 tests/ExtraTests/X02-DisabledMacros.cpp                    | 2 +-
 tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp | 2 +-
 tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp  | 2 +-
 tests/ExtraTests/X10-FallbackStringifier.cpp               | 2 +-
 tests/ExtraTests/X11-DisableStringification.cpp            | 2 +-
 tests/ExtraTests/X20-BenchmarkingMacros.cpp                | 4 +++-
 tests/ExtraTests/X90-WindowsHeaderInclusion.cpp            | 2 +-
 7 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/tests/ExtraTests/X02-DisabledMacros.cpp b/tests/ExtraTests/X02-DisabledMacros.cpp
index 2ed54db3..0577da09 100644
--- a/tests/ExtraTests/X02-DisabledMacros.cpp
+++ b/tests/ExtraTests/X02-DisabledMacros.cpp
@@ -3,7 +3,7 @@
 // and expressions in assertion macros are not run.
 
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 #include <iostream>
 
diff --git a/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp b/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp
index 07fac7e8..fb72826e 100644
--- a/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp
+++ b/tests/ExtraTests/X03-DisabledExceptions-DefaultHandler.cpp
@@ -1,5 +1,5 @@
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 TEST_CASE("Tests that run") {
     // All of these should be run and be reported
diff --git a/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp b/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp
index 028d05bd..82d6edfa 100644
--- a/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp
+++ b/tests/ExtraTests/X04-DisabledExceptions-CustomHandler.cpp
@@ -1,5 +1,5 @@
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 namespace Catch {
     [[noreturn]]
diff --git a/tests/ExtraTests/X10-FallbackStringifier.cpp b/tests/ExtraTests/X10-FallbackStringifier.cpp
index bf6601db..a52f371f 100644
--- a/tests/ExtraTests/X10-FallbackStringifier.cpp
+++ b/tests/ExtraTests/X10-FallbackStringifier.cpp
@@ -10,7 +10,7 @@ std::string fallbackStringifier(T const&) {
 }
 
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 struct foo {
     explicit operator bool() const {
diff --git a/tests/ExtraTests/X11-DisableStringification.cpp b/tests/ExtraTests/X11-DisableStringification.cpp
index 23f49f5f..79d4f6b4 100644
--- a/tests/ExtraTests/X11-DisableStringification.cpp
+++ b/tests/ExtraTests/X11-DisableStringification.cpp
@@ -5,7 +5,7 @@
 // will be deleted soon :-)
 
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 struct Hidden {};
 
diff --git a/tests/ExtraTests/X20-BenchmarkingMacros.cpp b/tests/ExtraTests/X20-BenchmarkingMacros.cpp
index b5010609..6704753e 100644
--- a/tests/ExtraTests/X20-BenchmarkingMacros.cpp
+++ b/tests/ExtraTests/X20-BenchmarkingMacros.cpp
@@ -2,7 +2,9 @@
 // Test that the benchmarking support macros compile properly with the single header
 
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
+#include <catch2/benchmark/catch_benchmark.hpp>
+#include <catch2/catch_generators_specific.hpp>
 
 namespace {
 std::uint64_t factorial(std::uint64_t number) {
diff --git a/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp b/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp
index 0a2bdb55..375b66db 100644
--- a/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp
+++ b/tests/ExtraTests/X90-WindowsHeaderInclusion.cpp
@@ -5,7 +5,7 @@
 
 #include <windows.h>
 #include <catch2/catch_default_main.hpp>
-#include <catch2/catch.hpp>
+#include <catch2/catch_test_macros.hpp>
 
 TEST_CASE("Catch2 did survive compilation with windows.h", "[compile-test]") {
     SUCCEED();