Hello,
I am using the jBehave maven plugin (v3.8) with the jBehave gherkin module
(v3.8) and after some investigation I have been able to filter features
(stories) using meta filters, but I have not been able to filter just
specific scenarios, so I wonder whether that is supported or not using the
Gherkin story parser.
For example, I am able to skip the execution of a whole gherkin Feature
(story) by adding the filter to the corresponding embedder
(embedder.useMetaFilters(Arrays.asList("-skip"));) and adding the Meta info
right after the description:
Feature: Some feature
Some description
Meta: @skip
Scenario Outline: Scenario 1
Given some prerequisites
When something happens
Then some result is obtained
Examples:
Table with data used in steps
Scenario Outline: Scenario 2
...
But I am not able to filter just the execution of Scenario 1. If I set the
Meta information right after the Scenario Outline title, as explained in the
Meta-Info documentation, the scenario is executed anyway:
Feature: Some feature
Some description
Scenario Outline: Scenario 1
Meta: @skip
Given some prerequisites
When something happens
Then some result is obtained
Examples:
Table with data used in steps
Scenario Outline: Scenario 2
...
Is there anything I am missing?
Many thanks,
Pablo