mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Add test checking that reporters report filters
This commit is contained in:
parent
ffa152095c
commit
17fac854ae
@ -596,6 +596,17 @@ foreach (reporterName # "Automake" - the simple .trs format does not support any
|
|||||||
"TAP"
|
"TAP"
|
||||||
# "TeamCity" - does not seem to support test suite-level metadata/comments
|
# "TeamCity" - does not seem to support test suite-level metadata/comments
|
||||||
"XML")
|
"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}"
|
add_test(NAME "Reporters:RngSeed:${reporterName}"
|
||||||
COMMAND
|
COMMAND
|
||||||
$<TARGET_FILE:SelfTest> "Factorials are computed"
|
$<TARGET_FILE:SelfTest> "Factorials are computed"
|
||||||
|
Loading…
Reference in New Issue
Block a user