title: PlayFramework and SBT release plugin run with test play app configuration
body: <p>Play 2.5</p>
  
  <p>Is there a way to automatically load a test configuration when running the <strong>release</strong> task in SBT-release <a href="https://github.com/sbt/sbt-release" rel="nofollow noreferrer">https://github.com/sbt/sbt-release</a>. </p>
  
  <p>Currently, I have to run this command and explicitly specify the test config file.</p>
  
  <pre><code>sbt "release with-defaults" -Dconfig.resource=application-test.conf
  </code></pre>
  
  <p><strong>runTest</strong> step is one of the releases steps  <strong>build.sbt</strong> Is it possible to make it pick up the test config automatically? </p>
  
  <pre><code>releaseProcess &lt;&lt;= thisProjectRef apply { ref =&gt;
    import sbtrelease.ReleaseStateTransformations._
    Seq[ReleaseStep](
      loginToAwsEcr(ref),
      checkSnapshotDependencies,
      inquireVersions,
      runClean,
      runTest,
      setReleaseVersion,
      commitReleaseVersion,
      tagRelease,
      releaseStepTask(sbtdocker.DockerKeys.dockerBuildAndPush),
      uploadBeanstalkBundle(ref),
      setNextVersion,
      commitNextVersion,
      pushChanges
    )
  }
  </code></pre>
  
  <p>project/plugins.sbt</p>
  
  <pre><code>addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.4.1")
  addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.2.0-M9")
  addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.4")
  </code></pre>
  
  <p>I tried to add </p>
  
  <pre><code>javaOptions in Test += "-Dconfig.file=conf/application-test.conf"
  </code></pre>
  
  <p>but it doesn't work.</p>