Enable Logging --- How???

266 views
Skip to first unread message

Jeff Miller

unread,
Feb 21, 2013, 7:14:57 PM2/21/13
to capybar...@googlegroups.com
Hi all,
  Capybara-webkit isn't displaying the output of console.log or even puts statements that are right my test! From what I can tell, it should do this by default. Using the poltergeist phantomJS driver, it shows all the log statements, but not if I use capybara-webkit. How can I force this to STDOUT so I can see it in my terminal as I run the tests?

Thanks!!

Joe Ferris

unread,
Feb 22, 2013, 11:25:47 AM2/22/13
to capybar...@googlegroups.com
Hey,

capybara-webkit outputs console.log statements to STDERR. It doesn't do anything that I'm aware of that would prevent puts statements in your tests from appearing in your terminal.

Are you positive that the code is reaching the puts statements? Can you paste an example test and the output? Have you run through it with a debugger?

Thanks,
-Joe
--
You received this message because you are subscribed to the Google Groups "capybara-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capybara-webk...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages