Test for specs/sbt detecting specifications as classes/objects

This commit is contained in:
Mark Harrah 2010-01-29 20:48:59 -05:00
parent 3cf2ff4e4f
commit f0b7fa0e1a
7 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import org.specs._
class A extends Specification
{
"this" should {
"not work" in { 1 must_== 2 }
}
}
object A extends Specification
{
"this" should {
"not work" in { 1 must_== 2 }
}
}

View File

@ -0,0 +1,15 @@
import org.specs._
class A extends Specification
{
"this" should {
"not work" in { 1 must_== 2 }
}
}
object A extends Specification
{
"this" should {
"work" in { 1 must_== 1 }
}
}

View File

@ -0,0 +1,15 @@
import org.specs._
class A extends Specification
{
"this" should {
"work" in { 1 must_== 1 }
}
}
object A extends Specification
{
"this" should {
"not work" in { 1 must_== 2 }
}
}

View File

@ -0,0 +1,15 @@
import org.specs._
class A extends Specification
{
"this" should {
"work" in { 1 must_== 1 }
}
}
object A extends Specification
{
"this" should {
"work" in { 1 must_== 1 }
}
}

View File

@ -0,0 +1,2 @@
project.name=Specs Test Type Test
project.version=1.0

View File

@ -0,0 +1,6 @@
import sbt._
class TestProject(info: ProjectInfo) extends DefaultProject(info)
{
val specs = "org.scala-tools.testing" %% "specs" % "1.6.1"
}

View File

@ -0,0 +1,23 @@
> ++2.8.0.Beta1-RC7
> update
> clean
$ delete src/
$ copy-file changes/ClassFailModuleSuccess.scala src/test/scala/Test.scala
-> test
> clean
$ delete src/
$ copy-file changes/ClassFailModuleFail.scala src/test/scala/Test.scala
-> test
> clean
$ delete src/
$ copy-file changes/ClassSuccessModuleFail.scala src/test/scala/Test.scala
-> test
> clean
$ delete src/
$ copy-file changes/ClassSuccessModuleSuccess.scala src/test/scala/Test.scala
> test