Implement warning for unmatched test specs

This commit is contained in:
Martin Hořeňovský
2021-12-18 20:50:03 +01:00
parent 9f2dca5384
commit 840acedf62
8 changed files with 54 additions and 6 deletions
@@ -27,6 +27,9 @@ namespace Catch {
if ( warning == "NoAssertions" ) {
config.warnings = WarnAbout::NoAssertions;
return ParserResult::ok( ParseResultType::Matched );
} else if ( warning == "UnmatchedTestSpec" ) {
config.warnings = WarnAbout::UnmatchedTestSpec;
return ParserResult::ok( ParseResultType::Matched );
}
return ParserResult ::runtimeError(