[Rails] Re: How to debug unit (and other) tests?
2009/10/7 Patrick Doyle <wpdster@gmail.com>:
>
> I'm sorry if this sounds like a totally newbie question, but...
>
> Are there good tips and resources for debugging unit tests?
> Currently, I just fire up script/console using the "test" environment
> and just poke around randomly until I hit upon some inspiration. But
> I think there should be a better way, for example, it would be nice to
> single step through a particular test case using a debugger in one
> window and watching the test log in the other window.
Have a look at the rails guide on debugging. Particularly the section
on ruby-debug.
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home