Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to combine autotest and spork in Rails testing?

Autotest increases the speed at which tests run by running only the changed tests.

But I want to push it even further by using spork to preload the Rails environment, so that I will get even faster feedback.

Is this possible?

Autotest : https://github.com/grosser/autotest

Spork : http://github.com/timcharper/spork

like image 483
user Avatar asked Nov 25 '10 07:11

user


1 Answers

ARTICLE1 mikbe has you covered! I would attempt to rephrase it here, but the post does such a great job.

If you happen to be on OSX, there are also instructions to utilize Growl for tray notifications.

ARTICLE2 Ruby Inside also has a walkthrough for Rails 3 and RSpec 2.

like image 185
crftr Avatar answered Sep 17 '22 12:09

crftr