Search code examples
intellij-ideacucumberrun-configuration

IntelliJ Idea + cucumber run configuration: how to exclude @tags


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.


Solution

  • I don't know about IntelliJ, but on a terminal you would run:

    cucumber --tags ~@debug --tags ~@obsolete