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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:08:50+00:00 2026-05-28T14:08:50+00:00

Say I have 2 tests: describe Data Processor do it should parse simple sample

  • 0

Say I have 2 tests:

describe "Data Processor" do
  it "should parse simple sample data correctly" do
   ... 
  end 

  it "should parse complex sample data correctly" do
   ... 
  end 
end 

Is there a way using Rspec to make the second test dependent on the first one? The reason I ask is because I’m using Watchr and the second test takes quite a bit more time. If the first test fails, the second one will very likely fail as well. They aren’t really dependent on each other but it’s kind of a waste of time to run the second test if the first one fails.

I can skip the test with Ctrl C in Watchr but I’m wondering if there’s a better way. Didn’t find anything via google.

  • 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-28T14:08:51+00:00Added an answer on May 28, 2026 at 2:08 pm

    Sometimes I add this line to my .rspec:

    --fail-fast
    

    which is a command-line flag telling rspec to exit after the first failure. It may not be exactly what you want; it doesn’t tie two particular examples together but rather quits your entire test suite when anything fails.

    But when I’m hammering out a new bit of code with autotest/guard/watchr, I like to turn this on since I only want to work on one failure at a time, anyway. Much faster.

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

Sidebar

Related Questions

Lets say I have a few utility functions in file tests/utils/functions.js. I would like
Say I have a vector: (def data [Hello World Test This]) And I want
Lets say I have the below method called DoSomething. When writing unit tests how
So lets say there's a server process that takes way too long. The client
Say I have a unit test that wants to compare two complex for objects
Lets say i have an application ( the details of the application should be
Say I have a user_spec.rb file, and I have allot of tests in this
Is there a way to group tests conditionally with rspec? By which I mean,
Say I have the following sequence: vows.describe('Example').addBatch({ 'An example' : { topic: new Example(),
Let's say I have the following data in a decimal (18,9) identity column in

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.