I'm happy to announce the release of ScalaCheck 1.8!
Regards,
Rickard Nilsson
RELEASE NOTES
ScalaCheck 1.8
ScalaCheck is a powerful tool for automatic unit testing of Scala and
Java
programs. It features automatic test case generation and
simplification of
failing test cases. ScalaCheck started out as a Scala port of the
Haskell
library QuickCheck, and has since evolved and been extended with
features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and
generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes
pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and
simplification of
failing command sequences.
ScalaCheck 1.8 brings several minor improvements and fixes to the
table. For
example, the code in org.scalacheck.Test and org.scalacheck.Gen has
been
simplified through the use of Scala's new support for named and
default
parameters. Scala's new collection API has been integrated in
ScalaCheck, which
have reduced the complexity in the collection-generating code. All
these
changes and simplifications has lead to a number of deprecated methods
in
ScalaCheck's API. You should make sure you're not using any deprecated
methods,
since they will be removed in an upcoming release.
The test runner has also been improved in ScalaCheck 1.8. For example
is it now
possible to set the verbosity level of the output. The support for
multi-threaded testing has also been rewritten, removing a bug and
simplifying
the implementation.
Finally, some rather crucial bugs in Gen.choose and its related
methods has
been fixed.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.7/doc/api/index.html
* Mailing list
scala...@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.1-1.8.jar
* Source JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.1-1.8-sources.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck_2.8.1</artifactId>
<version>1.8</version>
</dependency>