Cucumber, autotest and growl

Using cucumber and bdd is just fun. Shoulda have used it earlier … Sorry, I need to write that :)

When you use cucumber (at the beginning) you always have to run

cucumber features

in your console to run all your features. Or you specify one by running

cucumber features/session.feature

There are some more ways but have a look at the documentation for that.

Ok, back to topic. I want to include my cucumber features in autotest. No big deal about that. As usual, just read the f****** manual -> http://wiki.github.com/aslakhellesoy/cucumber/autotest-integration.

Just paste

export AUTOFEATURE=true

in your .bashprofile, .bashrc or whatever you use.

As you can read in another blog post of mine I use growl to notify about failing and passing tests. How to get this for cucumber features? And again … rtfm :) Here we go! Just install the cucumber_growl plugin in your application and it just works. (I linked my fork because I want to use my autotest images). As with every external repository I use braid to keep track of it.

That’s all. Now autotest includes your cucumber features and growl notifies you about the results. Have fun with bdd!

Leave a Reply