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 3976064
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:45:36+00:00 2026-05-20T04:45:36+00:00

I have a project that the tests are far from ideal, It takes around

  • 0

I have a project that the tests are far from ideal, It takes around 15 min to run all tests, and for me it is a problem. What is the maximum that a rake test should take?

I understand that this a personal take, please write a little bit of why as well, or paste a link to justify your answer, please.

  • 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-05-20T04:45:37+00:00Added an answer on May 20, 2026 at 4:45 am

    Just as a baseline, my current application has 2 sets of unit tests (for non-rails-dependent code and for rails-dependent code). 2 of the most time-consuming things in running rake in a rails environment is loading up rails and bundle exec. This is why we are moving as much of our testing into a non-rails-dependent, non-bundle-exec environment. So, as we touch parts of our existing system, we are moving the specs into the non-rails-dependent section.

    Here is the breakdown of timing our current test suite:

    time rake spec:no_rails
    Finished in 0.14229 seconds
    141 examples, 0 failures

    real 0m0.981s
    user 0m0.783s
    sys 0m0.168s

    time rake spec
    Finished in 11.86 seconds
    677 examples, 0 failures, 2 pending

    real 0m28.613s
    user 0m23.435s
    sys 0m3.180s

    I’m sure you can see why we are moving non-rails-dependent code examples away from the rails-dependent ones. There are a few other benefits to keeping your code from being dependent on rails, but the speed of tests is one of the most important. Minimizing the feedback cycle is imperative to get the most benefit out of your tests as regression.

    UPDATE
    Just as an update, as we move things over, here are the current stats for our specs. We definitely are finding both the speed to be an advantage, as well as the design pressure to isolate ourselves from rails. When you have your specs running this quickly, you can run them more frequently, which minimizes the feedback loop between doing something and seeing if the system still works.
    time rake spec:no_rails
    Finished in 0.36083 seconds
    316 examples, 0 failures, 1 pending
    real 0m1.019s
    user 0m0.858s
    sys 0m0.147s

    time rake spec:with_rails
    Finished in 12.86 seconds
    706 examples, 0 failures, 2 pending
    real 0m21.316s
    user 0m18.610s
    sys 0m1.954s

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

Sidebar

Related Questions

I have setup an android test project that runs junit tests. It's using two
I have a project that is supposed to run on different (at least 2)
I have a an installer that is created from a setup project and built
We have a mid-sized asp.net project that we just promoted from our dev server
HI, I want to have set configuration settings for a unit test project that
I have a unit test project in Visual Studio 2010 (.NET 4) that utilizes
I have a project that uses two third party libraries, both of which make
I have a project that targets both Mac OS X 10.4 and 10.5, where
I have a project that comprises pre-build Dll modules, built some time in the
I have a project that is built and managed by Maven. I have a

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.