Skip to content
Ahmed Ali edited this page Jan 24, 2016 · 2 revisions

##@Everyone

Tags are very useful way to group features and scenarios. You can add as many tags to your features and scenarios as you want.

Then these tags can be used by the dev team to filter out features and scenario for specific operations.

For example, the developer can execute only features that has only @accounts or @booking tags like that:

[[[Cucumberish instance] parserFeaturesInDirectory:@"ExampleFeatures" featureTags:@[@"accounts", @"booking"]] beginExecution];

Only the features that has one or more of the passed tags will be executed.

For scenarios they are used in combination with the Hooks so you can define a hock that is used only with scenario that have a specific tag.

Clone this wiki locally