venkata reddy
2012-Jun-27 10:21 UTC
Rspec tests passing individually but passing on a whole
Hi All, I found a weird thing happening with rspec tests. One of the tests is passing individually but failing when run all the tests in the application. Even to debug that, i have to run the whole tests which is taking more time to run. Anybody come across such thing? Any idea what''s is going inside? Any help will be appreciated. Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KDdWyWh3Ak4J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Jun-27 10:28 UTC
Re: Rspec tests passing individually but passing on a whole
On 27 June 2012 11:21, venkata reddy <venkatareddy.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > I found a weird thing happening with rspec tests. One of the tests > is passing individually but failing when run all the tests in the > application. Even to debug that, i have to run the whole tests which is > taking more time to run. > Anybody come across such thing? Any idea what''s is going inside?Presumably some hangover from one test to another. Work out why the test is failing when you run them all then work out why it is not failing when you run just it. Then you will know the answer. Don''t forget to tell us the result so we can all learn. See the Rails Guide on debugging to see techniques that can be useful for debugging the code to find out what is going on, in order to understand what is happening in the two cases. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.