You could tag your slow specs scenario 'some test', slow: true do # stuff end
then in your .rspec file add --tag ~slow which says don't run slow tagged specs by default. then when you do want to run the slow ones just do rspec /spec --tag slow On Thursday, February 26, 2015 at 8:48:52 AM UTC-7, AndyL wrote: > > My unit/models specs run in a couple seconds, but my integration/feature > specs take minutes. > > I'd like to always run the fast specs before the slow specs. > > I try some test cases: > > rspec models/spec1_spec.rb features/spec2_spec.rb > rspec features/spec2_spec.rb models/spec1_spec.rb > > and discover that the features always run before the models. > > It seems that rspec sorts the specs by path name before running. > > Is there any way to force Rspec to run my model specs before the feature > specs? > > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/84aa3fca-1100-4114-8a62-165d4d66e86d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
