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

Add test checking that reporters report filters

Commit
17fac854ae48aacccf299ef4026dd36e814e2e2a
Author
Martin Hořeňovský ·
Parents
ffa152095ce0

Files · Download .tar.gz

Changes

 tests/CMakeLists.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 666ecfff..b6508c23 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -596,6 +596,17 @@ foreach (reporterName # "Automake" - the simple .trs format does not support any
                       "TAP"
                       # "TeamCity" - does not seem to support test suite-level metadata/comments
                       "XML")
+
+    add_test(NAME "Reporters:Filters:${reporterName}"
+      COMMAND
+        $<TARGET_FILE:SelfTest> [comparisons][string-case] "CaseInsensitiveLess is case insensitive"
+          --reporter ${reporterName}
+    )
+    set_tests_properties("Reporters:Filters:${reporterName}"
+      PROPERTIES
+        PASS_REGULAR_EXPRESSION "[fF]ilters.+\\[comparisons\\]\\[string-case\\]"
+    )
+
     add_test(NAME "Reporters:RngSeed:${reporterName}"
       COMMAND
         $<TARGET_FILE:SelfTest> "Factorials are computed"