News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Wojciech Sznapka:
Export colored Behat scenarios to PDF
September 04, 2012 @ 09:42:49

Wojciech Sznapka has shares his technique for creating colorized exports of Behat tests for use in PDF files:

Behat scenarios are one of the best ways to describe system. UML Use Cases or tons of pages in SRS documents are fine, but hard to understand from the begining, and even harder to maintain in the future. Behat eases this process and also gives opportunity to automate requirements verification. To write Behat scenarios you need a text editor. I've picked my favourite - Vim, which highlights *.feature files syntax. But business people mostly don't use Vim, so I need to figure a way, to expose scenarios in easy and pleasant way.

His solution involves setting up some printing options in vim to export the tests as a Postscript file, setting the "colorscheme" to the default setting so the colors will be retained. The result is exported (via the "hardcopy" command) and can be converted into a PDF (with a result like this).

0 comments voice your opinion now!
behat test color export postscript pdf print


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: The Cost of Test Isolation (and other PHPUnit Features)

Zend Developer Zone: Generating PDF Forms From a Flex Application With PHP

Lukas Smith's Blog: PHP 5.3 alpha1 release imminent

DevShed: Constructing Multi-Line PDF Documents with PHP 5

DevShed: Building PDF Documents with PHP 5


Community Events





Don't see your event here?
Let us know!


testing opinion wordpress release code community interview language series podcast list refactor laravel developer framework install unittest threedevsandamaybe configure introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework