Created
November 1, 2010 16:03
-
-
Save jrudolph/658421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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