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
tags can be specified using -t (or as default command)
- Commit
3453639732c924b762f4e1e7e972d782bc2a9117- Author
- Phil Nash ·
- Parents
49d7ce40e864
Changes
include/internal/catch_commandline.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index f95eaca8..7558e257 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -262,8 +262,12 @@ namespace Catch { groupName += cmd[i]; } TestCaseFilters filters( groupName ); - for( std::size_t i = 0; i < cmd.argsCount(); ++i ) - filters.addFilter( TestCaseFilter( cmd[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 ); } };