mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Add test for round-tripping serialization of unmatched test specs
This commit is contained in:
parent
e19ed221bd
commit
d2294ad9b6
@ -264,6 +264,14 @@ add_test(NAME TestSpecs::OverrideFailureWithNoMatchedTests
|
|||||||
COMMAND $<TARGET_FILE:SelfTest> "___nonexistent_test___" --allow-running-no-tests
|
COMMAND $<TARGET_FILE:SelfTest> "___nonexistent_test___" --allow-running-no-tests
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_test(NAME TestSpecs::NonMatchingTestSpecIsRoundTrippable
|
||||||
|
COMMAND $<TARGET_FILE:SelfTest> Tracker, "this test does not exist" "[nor does this tag]"
|
||||||
|
)
|
||||||
|
set_tests_properties(TestSpecs::NonMatchingTestSpecIsRoundTrippable
|
||||||
|
PROPERTIES
|
||||||
|
PASS_REGULAR_EXPRESSION "No test cases matched '\"this test does not exist\" \\[nor does this tag\\]'"
|
||||||
|
)
|
||||||
|
|
||||||
add_test(NAME Warnings::UnmatchedTestSpecIsAccepted
|
add_test(NAME Warnings::UnmatchedTestSpecIsAccepted
|
||||||
COMMAND $<TARGET_FILE:SelfTest> Tracker --warn UnmatchedTestSpec
|
COMMAND $<TARGET_FILE:SelfTest> Tracker --warn UnmatchedTestSpec
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user