Using JUnit:
@RunWith(Cucumber.class)
@Cucumber.Options(tags="@Manual")
public class RunCukesTest {}
Using the CLI:
--tags @Manual
Aslak
> Thanks
> Akanksha
>
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
That tag expression is equivalent to: NOT @Manual OR @NewRelease
>
> In My build file i have mentioned the tags as
> <arg value="--tags"/>
> <arg value="${executeTags}"/>
> Here Execute tags is read from site execution property file
>
Typo? executeTags != ExecuteTag
>
> When i execute, it does not ignore the scenario having a MANUAL tag.
Typo? MANUAL != Manual
> Instead it runs the complete feature file
>
> How can i Ignore the scenarios having Manual tag
>
Instead of: NOT @Manual OR @NewRelease
You want: NOT @Manual AND @NewRelease
This translates to: --tags ~@Manual --tags @NewRelease
See https://github.com/cucumber/cucumber/wiki/Tags for an explanation
I realise this isn't the most intuitive in the world. I'm pondering
whether we should add a mini-language so you can do:
--tags "NOT @Manual AND @NewRelease"
Tag expression logic lives in the gherkin library, so if anyone feels
like adding this it should go there...
Aslak