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
Written by shinn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#