Scalactic was written by Bill Venners starting in 2012. The Scalactic library grew out of the ScalaTest 2.0 effort, it is small and can be used in production conveniently without depending on ScalaTest.
Scalactic's source code is hosted together with ScalaTest, but deployed as different artifacts (ScalaTest Jar includes Scalactic also, but you can use Scalactic alone through the Scalactic Jar). You can browse the source code:
You can git clone it to your local disk with this command
git clone https://github.com/scalatest/scalatest.git
To contribute, please fork the repo on your GitHub account, make your changes and submit a pull request.
To build ScalaTest/Scalactic, you'll need:
and use the following options in your SBT launch file:
SBT_OPTS="-server -Xms512M -Xmx2048M -Dfile.encoding=UTF8 -Xss1M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DoEscapeAnalysis -XX:ReservedCodeCacheSize=64m"
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
Issues can be submitted here:
Scalactic is brought to you by Bill Venners, with
contributions from several other folks. It is sponsored by
ScalaTest is free, open-source software released under the Apache 2.0 license.
Copyright © 2009-2019 Artima, Inc. All Rights Reserved.