Created
July 9, 2013 13:48
-
-
Save NullVoxPopuli/5957480 to your computer and use it in GitHub Desktop.
run rspec with spork
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# start spork server if it hasn't been started already | |
# this may need to be manually killed if plugins, or gems change | |
if ps ax | grep -v grep | grep -v grep | grep spork > /dev/null | |
then | |
echo "spork is already running..." | |
# simple formatting with color | |
# drb option specifies to use spork server | |
bundle exec rspec --format Fuubar --color spec --drb | |
else | |
echo "spork is not running..." | |
echo "starting spork in the background. This will take a moment..." | |
echo "please re-run this script to run your tests." | |
bundle exec spork & | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment