ScalaTest is a free, open-source testing toolkit for Scala and Java programmers.
Official Website: http://www.scalatest.org/
Please visit Download and Setup for download and setup instructions.
Please visit Quick Start for steps to get started quickly.
The followings are needed for building ScalaTest:
- JDK 6 or 7
- SBT 0.13.0
and use the following options in your SBT launch file:
SBT_OPTS="-server -Xms512M -Xmx2048M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:NewRatio=8 -XX:MaxPermSize=512M"
This command will build and run the regular tests:
$ sbt test
To run generated tests, you'll need to increase maximum heap size to -Xmx3072M, and use this command instead:
$ sbt "project gentests" "test"
What it does is simply switch to gentests project and run test.
You can package the ScalaTest JAR file using this command:
$ sbt package
The resulting JAR file will be produced in target/scala-2.10/.
You can also publish it to your local Ivy repository using this command:
$ sbt publishLocal
Or publish it to local maven repository using this command:
$ sbt publishM2