mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-30 01:03:30 +01:00
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];
|
groupName += cmd[i];
|
||||||
}
|
}
|
||||||
TestCaseFilters filters( groupName );
|
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] ) );
|
filters.addFilter( TestCaseFilter( cmd[i] ) );
|
||||||
|
}
|
||||||
config.filters.push_back( filters );
|
config.filters.push_back( filters );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user