java - Play 2.3.7 when fork in Test = false config options are ignored -


i'm using play 2.3.7 when fork in test := false in build.sbt conf files aren't loaded play when running tests.

the line javaoptions in test += "-dconfig.file=conf/test.conf" in build.sbt should load test.conf when running tests that's not happening.

the workaround run activator , pass above param on command line so:

activator -dconfig.file=conf/test.conf "test-only test.integration.sometest" 

if remove fork in test := false , play finds conf resources - of course can't step through tests sucks.

what missing in build.sbt ? bug in play?

forking tests means run on separate jvm.

not forking tests means run in same jvm sbt , cannot change parameters jvm started after has been started.

the solution if not want fork pass flags jvm sbt runs on when start it, mention in end of question.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -