Accessing Server Log from RSpec

1 view
Skip to first unread message

Jack Royal-Gordon

unread,
Mar 24, 2021, 12:15:58 AMMar 24
to rs...@googlegroups.com
This may not strictly be an RSpec question, but it is related. I’m troubleshooting a strange problem where I have one example with three tests (all with identical data and setup). The first test behaves differently in a way that I can’t figure out but has to do with my session timing out and/or not being logged in. In order to troubleshoot it, I want to be able to see the Server Log after running tests with Capybara/Selenium/ChromeDriver. I’ve looked at log/test.log but it is not being written to by these tests.

I am currently configuring my selenium driver with the following:

  config.before(:each, type: :system, js: true) do
    driven_by :selenium_chrome_headless
  end

Can anyone tell me what I should add to get a log file out of headless chrome?

Jon Rowe

unread,
Mar 24, 2021, 5:32:42 AMMar 24
to RSpec
Its not chrome that has the logs, your webserver (by default Puma) should be writing to the file if it's not its likely a config issue somewhere?

Cheers
Jon

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/9DE0C83A-6C13-4620-82E5-46D28B7C9AB0%40pobox.com.
Reply all
Reply to author
Forward
0 new messages