Aha!

Running with `--format doc` allowed me to see what the last test was run an 
identify the issue. I didn't have exit, but I did have a test using 
backticks to restart a service I didn't have, which presumably caused the 
suit to exit. 

Thanks!

On Friday, January 6, 2017 at 11:27:43 AM UTC-7, Myron Marston wrote:
>
> There are a variety of ways to filter specs, and one can imagine 
> configuring the filtering to be randomized to achieve the kind of behavior 
> you're seeing.  That said, you'd almost certainly have to set that up 
> intentionally to get that behavior and I can't imagine you're doing that.
>
> A more likely possibility is that you've got an `exit` or `exit!` call 
> somewhere in your spec suite or in code being called from your suite.  Such 
> a method call will cause the ruby interpreter to exit, cutting short the 
> run (at least on recent 3.x releases; we changed things to not interfere 
> with `exit` and `exit!` calls since they are core ruby methods we didn't 
> feel like we should interfere with).  My suggestion is to see what is the 
> last spec when your suite exits (running with `--format doc` will help 
> figure that out).  That spec is probably calling `exit` or calling code 
> that calls `exit`.  If you can find the `exit` call (or comment out the 
> spec) it will hopefully fix the problem.
>
> HTH,
> Myron
>
> On Fri, Jan 6, 2017 at 10:19 AM, 'Dan Alvizu' via rspec <
> [email protected] <javascript:>> wrote:
>
>> Hi!
>>
>> I recently upgraded an ancient rails 3.2 app to rails 4.1. Everything 
>> looks good, except my rspec doesn't want to run all tests now!
>>
>> If I run rspec --dry-run, I see 429 tests available. However I never see 
>> rspec actually run all of these tests. It runs what seems to be an 
>> indeterminate number of tests: sometimes as many as 237, sometimes as few 
>> as 2!
>>
>> I'm running rspec v 3.5.2-rails and rspec 3.5
>>
>> Is there any config or condition which would cause rspec to skip an 
>> entire test suite?
>>
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rspec/edf89a5d-cc4f-4240-aa8b-20407f8cc8d4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/rspec/edf89a5d-cc4f-4240-aa8b-20407f8cc8d4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/cac38f21-2ef7-4609-9d71-d6316412f78b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to