When there is a test failure, it is usually impossible to find the
correct log in logs/test.log file for paritular failed tests. This
patch automatically adds Rails logs (including ActiveRecord) to STDOUT
for every single test failure, so it's visible. Each log transaction
starts with "Rails logs for [name of the test] FAILURE" so it's easy
to grep it.
This hooks into ActiveSupport::TestCase, so make sure you do not use
Minitest::Test directly. We do not do that, there was just a one test
which was changed.
Remember, if you run into issues on Jenkins, open full console output
and search for "Rails logs" to find the logs for failed tests (once
the PR is merged).