Is there anyway to prevent autotest from outputting the huge stack trace of failed tests? I just want the little "Your code railed at line 6 of user_spec.rb" output... I''m running Rspec 1.1.1 and RspecOnRails 1.1.1, with rails 2.0.2 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The stack trace will help you one day, don''t get rid of it. On Jan 10, 2008 9:25 AM, Harmon <adam.jgrant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is there anyway to prevent autotest from outputting the huge stack > trace of failed tests? I just want the little "Your code railed at > line 6 of user_spec.rb" output... > > I''m running Rspec 1.1.1 and RspecOnRails 1.1.1, with rails 2.0.2 > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I gotcha, but they are really long, and it''s hard for me to see what went wrong when i have 3+ fails. It would be nice to restrict the stack trace to 2 lines, because really all I need is the line in my spec that failed. I''ve seen a whole bunch of autotest demos where they actually print out the code that failed under the notification. I know the textmate bundle can do something like this, but I have windows, and I want to use the command line anyway for my autotesting. Any ideas? Ryan Bigg wrote:> The stack trace will help you one day, don''t get rid of it. > > On Jan 10, 2008 9:25 AM, Harmon <adam.jgrant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Is there anyway to prevent autotest from outputting the huge stack > > trace of failed tests? I just want the little "Your code railed at > > line 6 of user_spec.rb" output... > > > > I''m running Rspec 1.1.1 and RspecOnRails 1.1.1, with rails 2.0.2 > > > > > > > > -- > Ryan Bigg > http://www.frozenplague.net > Feel free to add me to MSN and/or GTalk as this email.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 9, 3:22 pm, Harmon <adam.jgr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I gotcha, but they are really long, and it''s hard for me to see what > went wrong when i have 3+ fails. It would be nice to restrict the > stack trace to 2 lines, because really all I need is the line in my > spec that failed.I''m working on autotest right now. That sounds like a useful option, if nothing else. ///ark --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---