mirror of https://github.com/catchorg/Catch2.git
tags can be specified using -t (or as default command)
Previously -g had to be used
This commit is contained in:
parent
49d7ce40e8
commit
3453639732
|
@ -262,8 +262,12 @@ namespace Catch {
|
|||
groupName += cmd[i];
|
||||
}
|
||||
TestCaseFilters filters( groupName );
|
||||
for( std::size_t i = 0; i < cmd.argsCount(); ++i )
|
||||
for( std::size_t i = 0; i < cmd.argsCount(); ++i ) {
|
||||
if( startsWith( cmd[i], "[" ) || startsWith( cmd[i], "~[" ) )
|
||||
filters.addTags( cmd[i] );
|
||||
else
|
||||
filters.addFilter( TestCaseFilter( cmd[i] ) );
|
||||
}
|
||||
config.filters.push_back( filters );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue