I need a behavior of non-existing option test_launcher --exclude_test='Benchmark*'
? Is there a working mechanism in Boost.Test that can be used to achieve the same?
In the test filtering documentation see the discussion on Relative specification used with the command-line argument --run_test
.
The disabler specification format is to preface the specification with an exclamation mark (!
). So for your example the following will disable any enabled tests matching the pattern Benchmark*
test_launcher --run_test=!Benchmark*
Note that on linux you'll need to add quotes to prevent the asterisk and exclamation from getting interpreted
test_launcher --run_test='!Benchmark*'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With