mirror of https://github.com/sbt/sbt.git
Added basic console-project test and fixed default-params and test-failed tests
This commit is contained in:
parent
76b31e4fcf
commit
3c6b5f79c1
|
|
@ -0,0 +1,2 @@
|
|||
project.name=Test
|
||||
project.version=1.0
|
||||
|
|
@ -0,0 +1 @@
|
|||
> console-project
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# default parameters are only in 2.8
|
||||
> ++2.8.0-SNAPSHOT
|
||||
> ++2.8.0.Beta1-RC7
|
||||
> compile
|
||||
|
||||
# switch which 'x' method has a default for the second parameter in A
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
import org.scalatest._
|
||||
import org.specs._
|
||||
|
||||
class TestQuickSuite extends FunSuite {
|
||||
test("a test") {
|
||||
throw new IllegalStateException
|
||||
}
|
||||
}
|
||||
class helloWorldFailure extends Specification {
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size must be equalTo(12)
|
||||
}
|
||||
"'hello world' matches 'h.* w.*'" in {
|
||||
"hello world" must be matching("h.* w.*")
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,10 @@
|
|||
import org.scalatest._
|
||||
import org.specs._
|
||||
|
||||
class TestQuickSuite extends FunSuite {
|
||||
test("a test") {
|
||||
true
|
||||
}
|
||||
}
|
||||
class helloWorldSuccess extends Specification {
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size must be equalTo(11)
|
||||
}
|
||||
"'hello world' matches 'h.* w.*'" in {
|
||||
"hello world" must be matching("h.* w.*")
|
||||
}
|
||||
}
|
||||
|
|
@ -2,5 +2,5 @@ import sbt._
|
|||
|
||||
class TestQuickProject(info: ProjectInfo) extends DefaultProject(info) {
|
||||
val snapshots = ScalaToolsSnapshots
|
||||
val scalatest = "org.scalatest" % "scalatest" % "1.0.1-for-scala-2.8.0.Beta1-RC1-with-test-interfaces-0.2-SNAPSHOT"
|
||||
val specs = "org.scala-tools.testing" %% "specs" % "1.6.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
> ++2.8.0.Beta1-RC1
|
||||
> ++2.8.0.Beta1-RC7
|
||||
> update
|
||||
|
||||
$ copy-file changes/Fail.scala src/test/scala/TestQuickSuite.scala
|
||||
$ copy-file changes/Fail.scala src/test/scala/TestQuick.scala
|
||||
-> test-failed
|
||||
-> test-failed *
|
||||
-> test-failed TestQuickSuite
|
||||
-> test-failed helloWorldFailure
|
||||
|
||||
$ copy-file changes/Success.scala src/test/scala/TestQuickSuite.scala
|
||||
$ copy-file changes/Success.scala src/test/scala/TestQuick.scala
|
||||
> test-failed
|
||||
> test-failed *
|
||||
> test-failed TestQuickSuite
|
||||
> test-failed helloWorldSuccess
|
||||
Loading…
Reference in New Issue