bakineggs

one spec at a time

My name is Dan Barry. I've been a programming enthusiast for over ten years now.

Professionally, I've been developing web applications using Ruby on Rails. For fun, I'm writing a language called okk.

I'm currently living in San Francisco, California where I work as a software engineer at Square.

Blog

March 22, 2009 @ 6:22pm

Auto-Start Juggernaut with Cucumber

If you use Juggernaut and Cucumber, many of your features can fail unless you have a Juggernaut server running. You can add the following to your features/support/env.rb to automatically start and stop Juggernaut when you run your features:

juggernaut = fork { exec 'juggernaut -c config/juggernaut.yml' }
at_exit { exec 'kill', juggernaut.to_s }

Post Comment

© 2008-2012 Dan Barry. Designed by Hunter Hastings.