matthughes / scalatest

A testing tool for Scala and Java developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScalaTest

ScalaTest is a free, open-source testing toolkit for Scala and Java programmers.

Official Website: http://www.scalatest.org/

Using ScalaTest

Setup

Please visit Download and Setup for download and setup instructions.

Quick Start

Please visit Quick Start for steps to get started quickly.

Building ScalaTest

Pre-Requisites

The followings are needed for building ScalaTest:

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"

Building and Running Tests

This command will build and run the regular tests:

$ sbt test

To run generated tests, you'll need to increase maximum heap size to -Xmx5120M, and use this command instead:

$ sbt "project gentests" "test"

What it does is simply switch to gentests project and run test.

Packaging

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

About

A testing tool for Scala and Java developers

License:Apache License 2.0


Languages

Language:Scala 99.6%Language:Java 0.2%Language:JavaScript 0.1%Language:CSS 0.1%Language:Shell 0.0%