anchor.diff:  ----
   mvn clean verify -Dtags="feature:Reporting, release:sprint-2"
   ----
  +
  +==== Cucumber
  +
  +With Cucumber framework, you need to use the cucumber.options system property for tests filtering.
  +
  +[source,xml]
  +----
  +mvn clean verify -Dcucumber.options="--tags release:sprint-2"
  +----
  +
  +==== JBehave
   
   In case JBehave is your framework of choice, you can filter tests by using +-Dmetafilter+ in your maven command, as follows:
   
  
positive.code: In real-world projects, scenarios can become quite numerous, and it's important to keep them well organized. You may also need to be able to identify and group scenarios in different ways;
  for example, you might want to distinguish UI-related scenarios from batch-processing scenarios, or identify the regression scenarios only.
   
  Tags are also a great way to help organize test execution. For example, you might want to flag all of the web services tests, or mark certain tests to run against Internet Explorer browser only.
   
  === Annotating scenarios with tags
  
  Tags are added to JUnit tests using +WithTag+ annotation. The following will add a tag of type _epic_ with name _Audit_:
  
negative.code: Scenario: Download account statement in SWIFT MT940 format
  ----
  <1> Cucumber doesn't need the Meta keyword
  
  This way, when executing the tests, you can configure one or more filters to run (or exclude from run) the tests with a particular tag.
  
  You can also use tags as a powerful reporting tool. Using +@tag+ or +@tags+, Serenity lets you define tags that will appear in the test reports:
  
  ----
  Executing an international payment
  
  Meta:
  @tag component: payment     //<1>
  
  Scenario: Executing an international payment as a standing order
  ----
  <1> Scenarios in this file all involve the Payment component
  
  These tags can take any 'name' and 'value' combination and so can be used to report on whatever aspects you need in the living documentation.
  
  TIP: In +@Step+ libraries you have access to both read and add tag values.
  