Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raviqqe/gherkin2markdown

Gherkin to Markdown converter
https://github.com/raviqqe/gherkin2markdown

cucumber gherkin markdown

Last synced: 8 days ago
JSON representation

Gherkin to Markdown converter

Awesome Lists containing this project

README

        

# gherkin2markdown

[![GitHub Action](https://img.shields.io/github/actions/workflow/status/raviqqe/gherkin2markdown/test.yaml?branch=main&style=flat-square)](https://github.com/raviqqe/gherkin2markdown/actions)
[![Codecov](https://img.shields.io/codecov/c/github/raviqqe/gherkin2markdown.svg?style=flat-square)](https://codecov.io/gh/raviqqe/gherkin2markdown)
[![Go Report Card](https://goreportcard.com/badge/github.com/raviqqe/gherkin2markdown?style=flat-square)](https://goreportcard.com/report/github.com/raviqqe/gherkin2markdown)
[![License](https://img.shields.io/github/license/raviqqe/gherkin2markdown.svg?style=flat-square)](LICENSE)

A command to convert Gherkin files into Markdown.

## Installation

```
go install github.com/raviqqe/gherkin2markdown@latest
```

## Usage

```
gherkin2markdown
```

or

```
gherkin2markdown
```

## Example

_Given_ a file named `math.feature` with:

```gherkin
Feature: Python
Scenario: Hello, world!
Given a file named "main.py" with:
"""python
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:
"""python
print( + )
"""
When I successfully run `python3 main.py`
Then the stdout should contain exactly ""

Examples:
| x | y | z |
| 1 | 2 | 3 |
| 4 | 5 | 9 |
```

_When_ I successfully run `gherkin2markdown math.feature`

_Then_ the stdout should contain exactly:

````markdown
# Python

## Hello, world!

_Given_ a file named "main.py" with:

```python
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:

```python
print( + )
```

_When_ I successfully run `python3 main.py`

_Then_ the stdout should contain exactly "".

### Examples

| x | y | z |
| --- | --- | --- |
| 1 | 2 | 3 |
| 4 | 5 | 9 |
````

## License

[MIT](LICENSE)