I have a considerable test suite for my app with unit tests and integrated tests. The application has a considerable size so it has quite a number of Logger.debug, Logger.info and Logger.error calls spread around everywhere.
Objective
This means that when I run mix test my output gets polluted with hundreds of lines of logs. I need these logs so removing them from production code is not really an option, but I would like to hide them when testing.
Problem
To achieve this I changed my test_helper.exs to have the following content:
ExUnit.start(capture_log: true)
However when I run mix test I see a ton of l debug and even info logs.
Questions
How can I hide all logs from showing when running mix test ?