gpc-scenario-outline-expander
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i gpc-scenario-outline-expander

Weekly Downloads

5,425

Version

1.0.0

License

MIT

Unpacked Size

7.19 kB

Total Files

8

Last publish

Collaborators

  • monikalaszlo
  • rakur
  • wgula
  • szikszail
  • judit-nahaj
  • sorosz89