Last Updated: February 25, 2016
·
7.327K
· shinn

Show rails test logs in terminal

Running rails server will start a rails server and a lot of server requests and application logs are shown in the terminal.

Application logs are useful for debugging and to understanding the application's behavior.

Whereas in a testing environment, we don't get this convenience way of testing logs for debugging purpose.

However it's pretty easy to show the test logs in your terminal, just do:

tail -f log/test.log