mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-28 07:15:39 +02:00
Implement warning for unmatched test specs
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user