https://github.com/gherking/gpc-scenario-outline-expander
This precompiler is responsible for converting Scenario Outlines to single Scenarios as Cucumber would do and adds the first column as a tag.
https://github.com/gherking/gpc-scenario-outline-expander
cucumber feature-file gherkin gherking gpc hacktoberfest precompiler typescript
Last synced: 5 months ago
JSON representation
This precompiler is responsible for converting Scenario Outlines to single Scenarios as Cucumber would do and adds the first column as a tag.
- Host: GitHub
- URL: https://github.com/gherking/gpc-scenario-outline-expander
- Owner: gherking
- License: mit
- Created: 2019-11-03T20:44:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T04:30:07.000Z (11 months ago)
- Last Synced: 2024-11-14T14:23:37.638Z (6 months ago)
- Topics: cucumber, feature-file, gherkin, gherking, gpc, hacktoberfest, precompiler, typescript
- Language: Gherkin
- Homepage: https://gherking.github.io/gpc-scenario-outline-expander/
- Size: 688 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpc-scenario-outline-expander
    
This precompiler is responsible for converting Scenario Outlines to single Scenarios as Cucumber would do and adds the first column as a tag.## Example:
```gherkin
@tag1
Scenario Outline: Test language ()
Given I am on Home page user
When language is choosen
Then I should be on Home page
And the title should be ""@tag2
Examples:
| language | title |
| EN | Welcome |
| FR | Bienvenue |
```
It will be modified to:```gherkin
@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](https://www.npmjs.com/package/debug) for logging, use `gpc:scenario-outline-expander` :
```shell
DEBUG=gpc:scenario-outline-expander* gherking ...
```
For detailed documentation see the [TypeDocs documentation](https://gherking.github.io/gpc-scenario-outline-expander/).