tags can be specified using -t (or as default command)

Previously -g had to be used
This commit is contained in:
Phil Nash 2013-03-21 08:59:05 +00:00
parent 49d7ce40e8
commit 3453639732

View File

@ -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 );
}
};