Converts gherkin files into markdown/youtrack compatible formats.
Download latest version from releases for your OS/arch, make it executable
chmod +x gherkin-converter
and put the file anywhere in your path. Binaries for windows and many architectures are not provided, but it's pretty easy to build it yourself.
Just run
cargo build --release
It will create a file
target/release/gherkin-converter
target/release/gherkin-converter --format markdown [<file>]
or
target/release/gherkin-converter --format youtrack [<file>]
If file is not given, reads from stdin.
Given a standard feature file like
Feature: some feature
Scenario: some scenario
Given some precondition
When I do something
Then I get something
The markdown output will be
### some feature
- [ ] some scenario
```
Given some precondition
When I do something
Then I get something
```
The youtrack output will be
## some feature
- [ ] some scenario
<pre style="padding-top: 10px; padding-bottom: 10px; margin-bottom: 20px"><span style="color: darkorange">Given</span> some precondition
<span style="color: darkorange">When</span> I do something
<span style="color: darkorange">Then</span> I get something</pre>