mirror of https://github.com/sbt/sbt.git
basic test for junit integration
This commit is contained in:
parent
26ec82ed73
commit
938ca25951
|
|
@ -0,0 +1,3 @@
|
|||
resolvers += ScalaToolsReleases
|
||||
|
||||
libraryDependencies += "com.novocode" % "junit-interface" % "0.8" % "test"
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package com.foo.junit.test.blah
|
||||
|
||||
import org.junit._
|
||||
|
||||
class Failure
|
||||
{
|
||||
@Test def fail() { error("Fail!") }
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package com.foo.junit.test.blah
|
||||
|
||||
import org.junit._
|
||||
|
||||
class Success
|
||||
{
|
||||
@Test def succeed() { }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
> test
|
||||
|
||||
$ copy-file changes/Success.scala src/test/scala/Success.scala
|
||||
> test
|
||||
|
||||
> test-only com.foo.junit.test.blah.Success
|
||||
|
||||
$ copy-file changes/Failure.scala src/test/scala/Failure.scala
|
||||
-> test
|
||||
-> test-only com.foo.junit.test.blah.Failure
|
||||
> test-only com.foo.junit.test.blah.Success
|
||||
Loading…
Reference in New Issue