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
- Host: GitHub
- URL: https://github.com/cucumber/demo-formatter
- Owner: cucumber
- License: mit
- Created: 2022-02-14T13:57:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-02T07:26:07.000Z (about 1 year ago)
- Last Synced: 2025-07-07T16:38:46.787Z (12 months ago)
- Topics: go, ruby
- Language: Ruby
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```