mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
Tighten the test for matching filenames-as-tags
This commit is contained in:
parent
4c8454b5ec
commit
7b9bf633be
@ -209,7 +209,12 @@ set_tests_properties(FilenameAsTagsTest PROPERTIES PASS_REGULAR_EXPRESSION "\\[#
|
|||||||
|
|
||||||
# Check that the filename tags can also be matched against (#2064)
|
# Check that the filename tags can also be matched against (#2064)
|
||||||
add_test(NAME FilenameAsTagsMatching COMMAND $<TARGET_FILE:SelfTest> -\# --list-tags [\#Approx.tests])
|
add_test(NAME FilenameAsTagsMatching COMMAND $<TARGET_FILE:SelfTest> -\# --list-tags [\#Approx.tests])
|
||||||
set_tests_properties(FilenameAsTagsMatching PROPERTIES PASS_REGULAR_EXPRESSION "\\[#Approx.tests\\]")
|
set_tests_properties(FilenameAsTagsMatching
|
||||||
|
PROPERTIES
|
||||||
|
PASS_REGULAR_EXPRESSION "\\[#Approx.tests\\]"
|
||||||
|
# Avoids false positives by looking for start of line (newline) before the 0
|
||||||
|
FAIL_REGULAR_EXPRESSION "[\r\n]0 tag"
|
||||||
|
)
|
||||||
|
|
||||||
add_test(NAME EscapeSpecialCharactersInTestNames COMMAND $<TARGET_FILE:SelfTest> "Test with special\\, characters \"in name")
|
add_test(NAME EscapeSpecialCharactersInTestNames COMMAND $<TARGET_FILE:SelfTest> "Test with special\\, characters \"in name")
|
||||||
set_tests_properties(EscapeSpecialCharactersInTestNames PROPERTIES PASS_REGULAR_EXPRESSION "1 assertion in 1 test case")
|
set_tests_properties(EscapeSpecialCharactersInTestNames PROPERTIES PASS_REGULAR_EXPRESSION "1 assertion in 1 test case")
|
||||||
|
Loading…
Reference in New Issue
Block a user