mardi 28 mai 2019

Spring boot set log level for all tests at once (without changing every test)

Is there a way to set the logging level only for tests at once? (Without copying the complete application.yml to test/resources)

Using a specific profile would mean to add this manually to all tests. Using TestPropertySource would also mean to change all tests.

Is there something that i can put into test/resources that just sets logging and take all other properties from default/active profile?

Aucun commentaire:

Enregistrer un commentaire