One of the great things about cucumber is it makes it easier to work with non-technical people. You can even get them to write cucumber test for you, even non-techies can deal with plain text files.
So you’ve written your user stories and acceptance tests as a team and converted them into cucumber features and scenarios. The steps are all implemented and code is written.
Now you need to show the rest of the team a visual report of the acceptance testing. Because some of the team are designers or project managers they want to see something pleasing on the eye. You are proud of your efforts, you don’t want to disappoint.
So you generate a html version of the cucumber features…
Out of the box the HTML that cucumber generates are not particularly good looking. Thankfully its dead simple to supply your own custom html formatter.
Simply create a class and save it in features/support. I have chosen to call mine nice_html.rb
Basically just subclass the Cucumber::Formatter::Html class. Then override the inline_css method to load in your own css file.
To run it from the command line.
cucumber -o features/report.html -f NiceHtml features/
Cucumber will then look for the NiceHtml formatter and create a report.html file in your features directory.
You can then show this nicely formatted file to the rest of your team and bask in your own glory.