catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Tests hidden with legacy ./ prefix tagged as hidden
- Commit
b43d7703e52048d9b831d5d1c4fc1459e20e93c4- Author
- Phil Nash ·
- Parents
fbf3f6f8794b
Changes
include/internal/catch_test_case_info.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/internal/catch_test_case_info.hpp b/include/internal/catch_test_case_info.hpp index d5e80753..97af27a9 100644 --- a/include/internal/catch_test_case_info.hpp +++ b/include/internal/catch_test_case_info.hpp @@ -65,20 +65,21 @@ namespace Catch { enforceNotReservedTag( tag, _lineInfo ); inTag = false; - if( tag == "hide" || tag == "." ) { - tags.insert( "hide" ); - tags.insert( "." ); + if( tag == "hide" || tag == "." ) isHidden = true; - } - else { + else tags.insert( tag ); - } tag.clear(); } else tag += c; } } + if( isHidden ) { + tags.insert( "hide" ); + tags.insert( "." ); + } + TestCaseInfo info( _name, _className, desc, tags, isHidden, _lineInfo ); return TestCase( _testCase, info ); }