Patrick Doyle wrote: > 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. > > Any tips?
Just call the debugger from within your app code, or from the test itself. When the "debug" statement is executed, you'll be in an interactive debugger. Simple. > > Thanks. > > --wpd Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

