Allow enabling multiple warnings in one invocation

This commit is contained in:
Martin Hořeňovský
2021-12-18 20:48:43 +01:00
parent 840acedf62
commit 3cc0c033e4
14 changed files with 165 additions and 11 deletions

View File

@@ -237,6 +237,13 @@ set_tests_properties(Warnings::UnmatchedTestSpecIsAccepted
FAIL_REGULAR_EXPRESSION "Unrecognised warning option: "
)
add_test(NAME Warnings::MultipleWarningsCanBeSpecified
COMMAND
$<TARGET_FILE:SelfTest> Tracker
--warn NoAssertions
--warn UnmatchedTestSpec
)
add_test(NAME TestSpecs::WarnUnmatchedTestSpecFailsWithUnmatchedTestSpec
COMMAND
$<TARGET_FILE:SelfTest> Tracker, "___nonexistent_test___" --warn UnmatchedTestSpec