Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9151067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:42:39+00:00 2026-06-17T11:42:39+00:00

I want to speed up my model tests. After seeing this http://iain.nl/testing-activerecord-in-isolation , I

  • 0

I want to speed up my model tests. After seeing this
http://iain.nl/testing-activerecord-in-isolation, I thought it could
be achieved if i can only require the active_record rather than
loading the spec_helper.rb, which loads the whole Rails stack for
every test file.
I am using rspec-rails with factory_girl.
But so far its not working for me. Every time i run a single file the
whole migrations are getting run, which is not acceptable.And before
the whole migrations run i am getting some errors.
Anybody have a better idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:42:41+00:00Added an answer on June 17, 2026 at 11:42 am

    If you’re looking to speed up your tests by not having to reload the Rails environment each time, you should look into using Spork, Guard, and Guard::Spork. Spork allows you to run a separate, “clean” test server, while Guard enables you to keep it running in the background by observing your files for changes.

    Spork: https://github.com/sporkrb/spork

    Guard::Spork: https://github.com/guard/guard-spork

    The ever-helpful Railscast: http://railscasts.com/episodes/285-spork

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To speed up some unit tests that minimize and maximize windows, I want to
I've been working on a website lately and want to speed up my application.
I have the following formula float mean = (r+b+g)/3/255.0f; I want to speed it
i am working with jquery for animate a div. i want to control speed
I want to make the speed of an animation selectable. I've written the following
I want to execute several inserts at the smame batch to speed up the
I want to go for Windows 7 + Intel SSD drives to speed up
Just getting up to speed with YAML and want to confirm whether it's possible
I'm using jQuery Mobile and I want to detect the speed of a swipe
How to calculate approximately the connection speed of a website using JavaScript? I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.