mirror of https://github.com/sbt/sbt.git
fix integration test group 'tests'
This commit is contained in:
parent
30cca3a6d0
commit
048d5157c7
|
|
@ -1,4 +1,5 @@
|
|||
libraryDependencies += "org.scalatest" % "scalatest" % "1.3"
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test"
|
||||
|
||||
|
||||
testOptions in Configurations.Test ++= {
|
||||
def args(path: String, args: String*): Seq[TestOption] = if(file(path).exists) Tests.Argument(args : _*) :: Nil else Nil
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,8 +6,11 @@ object B extends Build
|
|||
lazy val root =
|
||||
Project("root", file("."))
|
||||
.configs( IntegrationTest )
|
||||
.settings( libraryDependencies += specs )
|
||||
.settings( Defaults.itSettings : _*)
|
||||
.settings(
|
||||
libraryDependencies += specs,
|
||||
resolvers += ScalaToolsReleases
|
||||
)
|
||||
|
||||
lazy val specs = "org.scala-tools.testing" %% "specs" % "1.6.7.2" % "it,test" intransitive()
|
||||
lazy val specs = "org.specs2" %% "specs2" % "1.7.1" % "it,test"
|
||||
}
|
||||
|
|
@ -1 +1,3 @@
|
|||
libraryDependencies += "org.scala-tools.testing" %% "specs" % "1.6.7.2" intransitive()
|
||||
libraryDependencies += "org.specs2" %% "specs2" % "1.7.1" % "test"
|
||||
|
||||
resolvers += ScalaToolsReleases
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
object BasicTest extends Specification
|
||||
{
|
||||
"Test resource on test classpath" in {
|
||||
getClass.getResource("TestResource.txt") mustNotBe null
|
||||
getClass.getResource("TestResource.txt") must not beNull
|
||||
}
|
||||
"Main resource on test classpath" in {
|
||||
getClass.getResource("MainResource.txt") mustNotBe null
|
||||
getClass.getResource("MainResource.txt") must not beNull
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +1,3 @@
|
|||
libraryDependencies += "org.scala-tools.testing" %% "specs" % "1.6.7.2" intransitive()
|
||||
libraryDependencies += "org.specs2" %% "specs2" % "1.7.1" % "test"
|
||||
|
||||
resolvers += ScalaToolsReleases
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import org.specs._
|
||||
import org.specs2.mutable._
|
||||
|
||||
class B extends Specification
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue