Logo: Relish

  1. Sign in

Project: Cucumber-js

Tags

Scenarios
execute scenarios matching a tag
Given
a scenario tagged with "@foo"
And
a scenario tagged with "@bar"
When
Cucumber executes scenarios tagged with "@foo"
Then
only the first scenario is executed
execute scenarios not matching a tag
Given
a scenario tagged with "@foo"
And
a scenario tagged with "@bar"
When
Cucumber executes scenarios not tagged with "@bar"
Then
only the first scenario is executed
execute scenarios matching any of several tags (OR)
Given
a scenario tagged with "@bar"
And
a scenario tagged with "@foo"
And
a scenario tagged with "@baz"
When
Cucumber executes scenarios tagged with "@foo" or "@bar"
Then
only the first two scenarios are executed
execute scenarios matching several tags (AND)
Given
a scenario tagged with "@foo" and "@bar"
And
a scenario tagged with "@foo"
When
Cucumber executes scenarios tagged with both "@foo" and "@bar"
Then
only the first scenario is executed
execute scenarios not matching any tag (NOT OR NOT)
Given
a scenario tagged with "@foo" and "@bar"
And
a scenario tagged with "@bar"
And
a scenario tagged with "@baz"
And
a scenario tagged with "@foo"
When
Cucumber executes scenarios not tagged with "@foo" nor "@bar"
Then
only the third scenario is executed
exclude scenarios matching two tags (NOT AND NOT)
Given
a scenario tagged with "@foo" and "@bar"
And
a scenario tagged with "@bar"
And
a scenario tagged with "@baz"
And
a scenario tagged with "@foo"
When
Cucumber executes scenarios not tagged with both "@foo" and "@bar"
Then
only the second, third and fourth scenarios are executed
with tag or without other tag
Given
a scenario tagged with "@foo" and "@bar"
And
a scenario tagged with "@baz"
And
a scenario tagged with "@bar"
When
Cucumber executes scenarios tagged with "@foo" or without "@bar"
Then
only the first two scenarios are executed
with tag but without two other tags
Given
a scenario tagged with "@foo" and "@bar"
And
a scenario tagged with "@foo", "@bar" and "@baz"
And
a scenario tagged with "@baz"
When
Cucumber executes scenarios tagged with "@baz" but not with both "@foo" and "@bar"
Then
only the third scenario is executed
execute scenario with tagged feature
Given
a feature tagged with "@foo"
And
a scenario without any tags
When
Cucumber executes scenarios tagged with "@foo"
Then
the scenario is executed

Last published almost 4 years ago by jbpros.