specs2

How to force Logger.debug output in Play! framework specs2 tests?

十年热恋 提交于 2019-11-27 05:15:06
问题 By default all Logger output, visible when an application is running, is mute when the application is tested. How to force the debugs, infos etc. to be shown in the specs2 reports? 回答1: First off, you may like some background why logging is disabled in test mode. This was Guillame Bort's answer to a question in the play forum (see this thread): The logger is disabled in test mode for now because it was causing an huge PermGen space leak when running tests. But we are working to run tests in a