I have a Play! project with unit tests and I am trying to run tests on my staging environment using sbt. Before I upgraded to Play 2.1, when I was using Play 2.0.4 and sbt 0
test is using forked jvm. Use javaOptions sbt setting to pass jvm options to it e.g.
javaOptions ++= Seq("-Dconfig.file=conf/staging.conf") or
javaOptions ++= Seq("-Dconfig.file=conf/staging.conf")
javaOptions ++= collection.JavaConversions.propertiesAsScalaMap(System.getProperties).map{ case (key,value) => "-D" + key + "=" +value }.toSeq