When running feature specs, how do you get the rails application output to log to a console?

StackOverflow https://stackoverflow.com/questions/21318015

  •  01-10-2022
  •  | 
  •  

Question

When running feature specs for my application, all of the sudden each test is timing out. I'd love to be able to temporarily output the Rails application output to the console to see where the bottleneck is. How can I do this?

Was it helpful?

Solution

Do this in a separate terminal window:

$ tail -f log/test.log

and then run the tests.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top