mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Tests hidden with legacy ./ prefix tagged as hidden
This commit is contained in:
		| @@ -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 ); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash