HI!
You write Cucumber features for collaboration.
If you present them as flat plaintext, non-programmers won't read them.
Try, using Reveal.js and show the scenario texts on a beamer.
This is a guide on how to do it!
First, copy the reveal_formatter.rb into your Cucumber support folder.
mkdir -p features/support/cucumber/formatter
cd features/support/cucumber/formatter
wget https://gist.githubusercontent.com/olleolleolle/bc6a0f91614e20c4fed7/raw/442197afe4f90b18ab90a3581861918fc7a78577/reveal_formatter.rb
So, in my support folder, I now have the formatter's file in the necessary folder structure:
├── cucumber
│ └── formatter
│ └── reveal_formatter.rb
In order to keep the formatter's long name out of the way, we have created a Profile in cucumber.yml
.
reveal: '--format Cucumber::Formatter::RevealFormatter --out slides.md'
Then, I can call it shorter using the fancy reveal
Cucumber profile:
$ bundle exec cucumber -p reveal
So, that created a Markdown file: slides.md
. Let's make a slideshow from it using Reveal-md.
$ npm install -g reveal-md
$ reveal-md slides.md
Re-run reveal-md using a custom theme, until you get a style you desire:
reveal-md slides.md --theme solarized
So. There you have it. Cucumber collaboration can be harder than it has to be, if the text isn't presented clearly.