Implement warning for unmatched test specs

This commit is contained in:
Martin Hořeňovský 2021-12-18 19:59:23 +01:00
parent 9f2dca5384
commit 840acedf62
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
8 changed files with 54 additions and 6 deletions

View file

@ -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(