mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Add test for round-tripping serialization of unmatched test specs
This commit is contained in:
		| @@ -264,6 +264,14 @@ add_test(NAME TestSpecs::OverrideFailureWithNoMatchedTests | ||||
|   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 | ||||
|   COMMAND $<TARGET_FILE:SelfTest> Tracker --warn UnmatchedTestSpec | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský