If you use xsbt 0.10.0, you can easily create additional test configurations by specifying the complete build configuration in Scala, located in the project folder. The following is an example wiki for integration tests. The default directory layout is slightly different from yours, unit tests go to src / test / scala and integration tests to src / it / scala. Then from the console, you can run test to run unit tests or it:test for integration tests.
import sbt._ import Keys._ object B extends Build { lazy val root = Project("root", file(".")) .configs( IntegrationTest ) .settings( Defaults.itSettings : _*) .settings( libraryDependencies += specs ) lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.8" % "it" }
Mark jayxcela
source share