Yeah - I've been using tags heavily for a long time - they are awesome.  
This is the first time I've tried to use tags to change the default 
execution order & was happy to find how easy to customize.

On Saturday, February 28, 2015 at 11:48:01 AM UTC-8, Chris Irish wrote:
>
> 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/07fc62d0-3608-4578-b11f-a90d2bcb9edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to