Hi,

Meta: is not a recognised keyword by Gherkin parser.

You simply put the tag before the element, e.g.

@skip
Feature:  Some feature

That said, the tag support is a new feature in 3.9 and will soon be released:

https://jira.codehaus.org/browse/JBEHAVE-940

If you want you can tried out the latest 3.9-SNAPSHOT.

Cheers

On 11/09/2013 11:06, Pablo Guijarro Enríquez wrote:

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


Reply via email to