For my test (play framework 2.6 app) I want to use different configuration file.
For this, I've added following line into build.sbt
javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
When I run tests from sbt (sbt test
), it works fine, reads the custom configuration file.
But when running tests from Intellij, it ignores this setting and uses application.conf
file.
How to force intellij to use this sbt setting?
Aucun commentaire:
Enregistrer un commentaire