I’m using Ruby on Rails 3 and writing tests but it’s too slow.
Is there some good configure or tools to make that faster?
I’m using Ruby on Rails 3 and writing tests but it’s too slow. Is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As @eml says, if you’re using RSpec, you can use Spork. This basically fires up the environment (which is the slow part) and then keeps it around, forking every time you run your specs.
For a more general solution to the “environment always loaded” problem can install rails-sh and run your tests from within the shell.
Side-note: Ruby 1.9.3 should alleviate this problem slightly as the require time has been optimized.