gherkin2markdown
A command to convert Gherkin files into Markdown.
This is a fork of gherkin2markdown, to make customizations that made the
markdown a bit neater with Github Pages
Installation
go get -u github.com/wepala/gherkin2markdown
Usage
gherkin2markdown <file>
or
gherkin2markdown <srcdir> <destdir>
Example
Given a file named math.feature
with:
Feature: Python
Scenario: Hello, world!
Given a file named "main.py" with:
"""
print("Hello, world!")
"""
When I successfully run `python3 main.py`
Then the stdout should contain exactly "Hello, world!"
Scenario Outline: Add numbers
Given a file named "main.py" with:
"""
print(<x> + <y>)
"""
When I successfully run `python3 main.py`
Then the stdout should contain exactly "<z>"
Examples:
| x | y | z |
|:--|:--|:--|
| 1 | 2 | 3 |
| 4 | 5 | 9 |
When I successfully run gherkin2markdown math.feature
Then the stdout should contain exactly:
# Python
## Hello, world!
**Given** a file named "main.py" with:
```
print("Hello, world!")
```
**When** I successfully run `python3 main.py`
**Then** the stdout should contain exactly "Hello, world!".
## Add numbers
**Given** a file named "main.py" with:
```
print(<x> + <y>)
```
**When** I successfully run `python3 main.py`
**Then** the stdout should contain exactly "<z>".
### Examples
| x | y | z |
| --- | --- | --- |
| 1 | 2 | 3 |
| 4 | 5 | 9 |
License
MIT