Permalink
Browse files

fix integration test group 'tests'

  • Loading branch information...
1 parent 32e923d commit 0fa0e4a4ef3e9c424a2dc226371e5b8bd030b00a @harrah committed Jan 23, 2012
@@ -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
{

0 comments on commit 0fa0e4a

Please sign in to comment.