Make hidden tags behave identically (#1847)

Add both `[.]` and `[!hide]` tags when registering a hidden test case, as per documentation.

Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
This commit is contained in:
dmsteck
2020-01-31 20:44:06 +00:00
committed by GitHub
parent 2d172dc688
commit 481f54b357
8 changed files with 171 additions and 98 deletions

View File

@@ -89,7 +89,8 @@ namespace Catch {
}
}
if( isHidden ) {
tags.emplace_back( "." );
// Add all "hidden" tags to make them behave identically
tags.insert( tags.end(), { ".", "!hide" } );
}
TestCaseInfo info( static_cast<std::string>(nameAndTags.name), _className, desc, tags, _lineInfo );