Organizing Features and Scenarios


Tags are a great way to organize your features and scenarios. Consider this example:

Feature: Verify billing

  Scenario: Missing product description

  Scenario: Several products

A Scenario or Feature can have as many tags as you like, just separate them with spaces:

@billing @bicker @annoy
Feature: Verify billing


If a tag exists on a Feature, Behat will assign that tag to all child Scenarios and Scenario Outlines too.

Previous chapter
Writing Scenarios
Next chapter
Testing Features