banditcpp/bandit

Feature Request: Advanced --skip and --only

TiloW opened this issue · 4 comments

TiloW commented

It would be convenient to be able to use both --skip and --only simultaneously or even provide a regex that test titles have to match. It would also be nice to match titles composed of multiple nested describe names.

That would indeed be very convenient ;)

It is by the way possible to use --skip and --only simultaneously.

It is however not possible to write more complex rules. I think I won't add a regex support, but a convenient compromise could be to be able to use --skip and/or --only multiple times.

TiloW commented

It is by the way possible to use --skip and --only simultaneously.

Only to some extend. Let's say you have test-cases "it works on instance A" and "it works on instance B".
Calling your executable with --only=instance --skip=B will execute both tests, instead of just the first one.

Thanks for reporting, that's a bug.