Add test checking that reporters report filters

This commit is contained in:
Martin Hořeňovský 2022-10-26 11:26:10 +02:00
parent ffa152095c
commit 17fac854ae
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 11 additions and 0 deletions

View File

@ -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"