Improve logging and debuggability of our tests
While digging into #921 (closed) I have run into issues with how we log data, namelly:
- tests that succeed log all the information obscuring logs from failed tests, making them difficult to find
- we do not log everything, basically only access-log
- we leak goroutines which makes logs panic once enabled.
The goal is to have logs like this:
This requires:
- proper propagation of the context to the
App
from NewTestEnv helper - enabling logging for unittests
- changing test formart output for gotestsum to testname
- implement proper shutdown for for Notifications-related goroutines
Edited by Pawel Rozlach