title: Define custom test configurations in sbt
body: <p>I need to define a custom test configuration in sbt which runs test, but with some extra settings. I've been looking around trying to figure out how to do this, but I can't seem to get it right.</p>
  
  <p>What I would like to do is something like this: <code>&gt; test</code> which would run the normal test task and <code>&gt; pipelinetest</code> which would exactly the same as test, only with <code>(javaOptions += "-Dpipeline.run=run"</code>.</p>
  
  <p>I've figured out how the set the javaOptions for test, like this:
  <code>javaOptions in test += "-Dpipeline.run=run"</code> so what I would like to be able to do is this: <code>javaOptions in pipelinetest += "-Dpipeline.run=run"</code></p>
  
  <p>How would I define <code>pipelinetest</code> to achieve this goal? Do this need to be a new task? Or does would this be a setting in <code>test</code>. I'm very new to sbt and quite confused over this at the moment, and reading the documentation didn't help, so any help would be greatly appreciated.</p>