Rspec tests passing individually but passing on a whole

26 views
Skip to first unread message

venkata reddy

unread,
Jun 27, 2012, 6:21:47 AM6/27/12
to rubyonra...@googlegroups.com
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! 

Colin Law

unread,
Jun 27, 2012, 6:28:29 AM6/27/12
to rubyonra...@googlegroups.com
On 27 June 2012 11:21, venkata reddy <venkata...@gmail.com> 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
Reply all
Reply to author
Forward
0 new messages