CINXE.COM
Scalactic
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>Scalactic</title> <link rel="Stylesheet" href="/assets/stylesheets/main.css" type="text/css" media="screen"/> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-19BZD1XMRV"></script> <script defer src='/assets/javascripts/gtag.js'></script> </head> <body> <div class="Container"> <!-- Top of scalactic.org 660 x 60 [async] --> <script id="adsArtimaScript" type="text/javascript" src="https://www.artima.com/assets/javascripts/4ca150665e51d0b1c3890ca1b891c507-ads.js?product=Scalactic"></script> <div id="Header"> <div id="Nav"> <a href="/">Home</a> | <a href="/quick_start">Quick Start</a> | <a href="/install">Install</a> | <a href="/user_guide">User Guide</a> | <a href="/scaladoc">Scaladoc</a> | <a href="/supersafe">SuperSafe</a> | <span><em>About</em></span> </div> <!-- Nav --> </div> <!-- Header --> <div id="body"> <div class="message"> <a class="scalatestLogo" href="./"> <img src="/assets/images/scalacticLogo.gif" width="400" height="60" alt="ScalaTest"/> </a> </div> <div style="text-align: left"> <h1>About Scalactic</h1> <p> 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. </p> <p> 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: </p> <p> <a href="javascript:void(window.open('https://github.com/scalatest/scalatest', '_blank'))">https://github.com/scalatest/scalatest</a> </p> <p> You can git clone it to your local disk with this command </p> <p> <code>git clone https://github.com/scalatest/scalatest.git</code> </p> <p> To contribute, please fork the repo on your GitHub account, make your changes and submit a pull request. </p> <h2>Building ScalaTest/Scalactic</h2> <h3>Pre-Requisites</h3> <p> To build ScalaTest/Scalactic, you'll need: </p> <ul> <li><a href="javascript:void(window.open('https://www.oracle.com/java/technologies/downloads/#java8', '_blank'))">JDK 8</a></li> <li><a href="javascript:void(window.open('https://www.scala-sbt.org/download.html', '_blank'))">SBT</a></li> </ul> <p> and use the following options in your SBT launch file: </p> <p> <code>SBT_OPTS="-server -Xms512M -Xmx2048M -Dfile.encoding=UTF8 -Xss1M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DoEscapeAnalysis -XX:ReservedCodeCacheSize=64m"</code> </p> <h3>Building and Running Tests</h3> <p> This command will build and run the regular tests: </p> <p> <code>$ sbt test</code> </p> <p> To run generated tests, you'll need to increase maximum heap size to <code>-Xmx3072M</code>, and use this command instead: </p> <p> <code>$ sbt "project gentests" "test"</code> </p> <p>What it does is simply switch to <code>gentests</code> project and run <code>test</code>.</p> <h2>Issues Reporting</h2> <p> Issues can be submitted here: </p> <p> <a href="javascript:void(window.open('https://github.com/scalatest/scalatest/issues', '_blank'))">https://github.com/scalatest/scalatest/issues</a> </p> </div> </div> <!-- body --> <div style="font-size: 66%; margin-top: 60px"> <p> Scalactic is brought to you by Bill Venners, with contributions from several other folks. It is sponsored by Artima, Inc.<br /> ScalaTest is free, open-source software released under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2.0 license</a>. </p> <p> Copyright © 2009-2025 Artima, Inc. All Rights Reserved. </p> <p> <a href="http://www.artima.com" class="no_link_hover"> <img src="/assets/images/artima100Black.png" style="margin-top: 2px" width="100" height="38" alt="artima"/> </a> </p> </div> <!-- style="..." --> </div> <!-- Container --> </body> </html>