Options
All
  • Public
  • Public/Protected
  • All
Menu

gpc-scenario-outline-expander

gpc-scenario-outline-expander

Downloads Version@npm Version@git CI Docs This precompiler is responsible for converting Scenario Outlines to single Scenarios as Cucumber would do and adds the first column as a tag.

Example:

  @tag1
Scenario Outline: Test language (<language>)
Given I am on Home page <language> user
When <language> language is choosen
Then I should be on Home page
And the title should be "<title>"

@tag2
Examples:
| language | title |
| EN | Welcome |
| FR | Bienvenue |

It will be modified to:

  @tag1 @tag2 @language(EN)
Scenario: Test language (EN)
Given I am on Home page EN user
When EN language is choosen
Then I should be on Home page
And the title should be "Welcome"

@tag1 @tag2 @language(FR)
Scenario: Test language (FR)
Given I am on Home page FR user
When FR language is choosen
Then I should be on Home page
And the title should be "Bienvenue"

Configuration

The precompiler accepts the following configuration:

Option type Description Default
ignoreTag String Tag used to mark scenarios to be ignored during expanding Scenario Outlines @notExpand

Other

This package uses debug for logging, use gpc:scenario-outline-expander :

DEBUG=gpc:scenario-outline-expander* gherking ...

For detailed documentation see the TypeDocs documentation.

Generated using TypeDoc