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

https://github.com/cucumber/demo-formatter

Simple implementation for a standalone cucumber formatter
https://github.com/cucumber/demo-formatter

go ruby

Last synced: 6 months ago
JSON representation

Simple implementation for a standalone cucumber formatter

Awesome Lists containing this project

README

          

# Cucumber Demo Formatter

This is a very simple implementation of a dtandalone Cucumber formatter. It reads messages generated by Cucumber's `message` formatter from `STDIN` and writes a report to `STDOUT`.

If you are writing a new formatter, copy this code as a starting point.

## Usage

You'll need a `messages.ndjson` file with messages that your formatter can process.
The simplest way to generate one of these is to use Cucumber's built-in `message` formatter.

### Ruby

```
cat messages.ndjson | ruby/bin/cucumber-demo-formatter
```