Accessing Server Log from RSpec

1 view
Skip to first unread message

Jack Royal-Gordon

Mar 24, 2021, 12:15:58 AMMar 24
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

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

Jon Rowe

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?


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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages