// Test Settings
lazy val SystemIntegrationTest = config ("systest") extend(IntegrationTest)
lazy val playTestDependency = "com.typesafe.play" %% "play-test" % play.core.PlayVersion.current % "it"
lazy val testConfigs = project in file(".") configs( SystemIntegrationTest, IntegrationTest
) settings( inConfig(SystemIntegrationTest)(Defaults.testSettings) : _*
) settings( inConfig(IntegrationTest)(Defaults.itSettings) : _*
) settings( libraryDependencies += playTestDependency
)
testOptions in Test += Tests.Argument(TestFrameworks.Specs2, "sequential", "true", "junitxml", "console")
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "--ignore-runners=org.specs2.runner.JUnitRunner")
javaSource in SystemIntegrationTest := baseDirectory.value / "test-sys"
resourceDirectory in SystemIntegrationTest := baseDirectory.value / "conf-sys"
javaSource in IntegrationTest := baseDirectory.value / "test-it"
resourceDirectory in IntegrationTest := baseDirectory.value / "conf-it"
[framework] $ show it:defined-tests[info] Updating {file:/Users/rrahko/git/play-configs/}testConfigs...[info] Resolving org.fusesource.jansi#jansi;1.4 ...[info] Done updating.[info] List(Test IntegrationTest : annotation(false, org.junit.Test))[success] Total time: 7 s, completed Mar 11, 2014 12:55:54 AM[framework] $ show systest:defined-tests[info] List(Test SystemIntegrationTest : annotation(false, org.junit.Test))[success] Total time: 1 s, completed Mar 11, 2014 12:56:01 AM[framework] $ show defined-tests[info] List(Test route.RouteManagerTest : annotation(false, org.junit.Test), Test route.RouteManagerTest : annotation(false, org.junit.runner.RunWith))[success] Total time: 0 s, completed Mar 11, 2014 12:56:07 AM