radish-bdd / radish

Behavior Driven Development tooling for Python. The root from red to green.
https://radish-bdd.github.io
MIT License
182 stars 49 forks source link

Is there a way to skip Feature Files ? #403

Closed dschiller closed 4 years ago

dschiller commented 4 years ago

Is there a way to skip Feature Files by adding something like @skip inside the Feature File ?

timofurrer commented 4 years ago

You can do that by using tags, just tag it like you suggested and provide --tags 'not skip'.

dschiller commented 4 years ago

Thanks works.

canOpenSomething.feature

@skip
Feature: The User can open Something
...

Commandline

radish Tests\ProductA\Features\Something --tags "not skip" --basedir Radish/Base --marker "Something"

Result

Running Tests for 'producta' and Feature 'something'..

Error: No feature or no scenario specified in at least one of the given feature files
You have specified a tag expression. Make sure those are valid and actually yield some Scenarios to run.