basic test for junit integration

This commit is contained in:
Mark Harrah 2012-01-27 21:09:11 -05:00
parent 26ec82ed73
commit 938ca25951
4 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,3 @@
resolvers += ScalaToolsReleases
libraryDependencies += "com.novocode" % "junit-interface" % "0.8" % "test"

View File

@ -0,0 +1,8 @@
package com.foo.junit.test.blah
import org.junit._
class Failure
{
@Test def fail() { error("Fail!") }
}

View File

@ -0,0 +1,8 @@
package com.foo.junit.test.blah
import org.junit._
class Success
{
@Test def succeed() { }
}

View File

@ -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