Skip to content

Instantly share code, notes, and snippets.

@jrudolph
Created November 1, 2010 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrudolph/658421 to your computer and use it in GitHub Desktop.
Save jrudolph/658421 to your computer and use it in GitHub Desktop.
#Project properties
#Mon Nov 01 17:04:45 CET 2010
project.organization=test
project.name=sbt-specs-test
sbt.version=0.7.4
project.version=1.0
build.scala.versions=2.8.0
project.initialize=false
import org.specs._
object SpecTest extends Specification {
def parameterizedTests(param: String) {
"simple" in { param.toInt must_== 2 }
}
"Test with 1" should {
"work correctly" in parameterizedTests("1")
}
"Test with 2" should {
"work correctly" in parameterizedTests("2")
}
}
import sbt._
class SpecsTester(info: ProjectInfo) extends DefaultProject(info) {
val specs = "org.scala-tools.testing" %% "specs" % "1.6.5" % "test"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment