Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-23 Thread Tim Walker
>> Cucumber itself is not forking anything though. Sure it is, Cucumber is forking cool. Tim On Tue, Dec 23, 2008 at 4:49 PM, aslak hellesoy wrote: > > > On Tue, Dec 23, 2008 at 1:12 PM, aidy lewis > wrote: >> >> Hi Aslak, >> >> Thanks for the heads-up, but it seems the AfterStep block is only

Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-23 Thread aslak hellesoy
On Tue, Dec 23, 2008 at 1:12 PM, aidy lewis wrote: > Hi Aslak, > > Thanks for the heads-up, but it seems the AfterStep block is only > executed if a step passes and not if it fails, is pending, skipped or > non-implemented. > > I tried to run a debugger on it to see what happens, but I think > Cuc

Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-23 Thread Mischa Fierer
Hi, I have not had any trouble opening the debugger in cucumber. Then "debug" do debugger stop_here = 1 end M On Tue, Dec 23, 2008 at 4:12 AM, aidy lewis wrote: > Hi Aslak, > > Thanks for the heads-up, but it seems the AfterStep block is only > executed if a step passes and not if it fails

Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-23 Thread aidy lewis
Hi Aslak, Thanks for the heads-up, but it seems the AfterStep block is only executed if a step passes and not if it fails, is pending, skipped or non-implemented. I tried to run a debugger on it to see what happens, but I think Cucumber is opening another Ruby process and preventing me from debug

Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-22 Thread aslak hellesoy
On Mon, Dec 22, 2008 at 9:46 PM, aidy lewis wrote: > Hi, > > I am using Cucumber in combination with tests that drive the actual > browser. > > Is there a place where I can easily trap an exception and take a > screenshot of the browser? > http://github.com/aslakhellesoy/cucumber/wikis/hooks Use

[rspec-users] [cucumber] screenshot upon exception

2008-12-22 Thread aidy lewis
Hi, I am using Cucumber in combination with tests that drive the actual browser. Is there a place where I can easily trap an exception and take a screenshot of the browser? Regards Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rub