Good news everyone.
I don't know how to exclude several tags within my run configuration for Cucumber project.
For instance, i have three tests.
@debug
Scenario outline: foo 1
When step
Then step
@obsolete
Scenario outline: foo 2
When step
Then step
@stable
Scenario outline: foo 3
When step
Then step
I put ~@debug,~@obsolete to the textbox called «Tags Filter» of the «Run configuration» dialog window.
But there's something wrong because when I start my tests — foo 1, foo 2 and foo 3 are starting anyways.
I have found the answer to this question within a comment to another stackoverflow question: https://stackoverflow.com/a/23743258.
Basically to add several tags to IntelliJ you need to add -Dcucumber.options="--tags ~@debug --tags ~@obsolete" to the VM options in the default cucumber settings.
For IntelliJ: Add below to the VM options by editing configuration
-Dcucumber.options="--tags @debug"
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