mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-28 15:39:27 +00:00
Implement warning for unmatched test specs
This commit is contained in:
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue