Is it possible to get the re-start
(aka reStart) task to automatically run before I run the IntegrationTest target (it:test
)?
I thought this would do it:
test <<= (test in IntegrationTest) dependsOn reStart
However, I'm getting this error:
build.sbt:54: error: not found: value reStart
test <<= (test in IntegrationTest) dependsOn reStart
^
[error] Type error in expression
By adding import Revolver._
I got a bit further, but it still fails. Now I get a more descriptive error, however:
build.sbt:55: error: type mismatch;
found : sbt.InputKey[spray.revolver.AppProcess]
required: sbt.Scoped.AnyInitTask
(which expands to) sbt.Def.Initialize[sbt.Task[T]] forSome { type T }
test in IntegrationTest <<= (test in IntegrationTest) dependsOn reStart
Is there a way to get around that?