Scalactic User Guide

Custom equality

Default equality

Constrained equality

Tolerance

Normalization

The Explicitly DSL

Or and Every

Requirements

Snapshots

TimesOnInt

This user guide will help you get rolling quickly with Scalactic. First a brief orientation:

  • Scalactic, which emerged from the ScalaTest 2.0 project, focuses on aspects of testing that can also be useful in production code.
  • The org.scalactic package is included in the ScalaTest's jar, but is also available separately in a small Scalactic jar.
  • Scalactic is released alongside ScalaTest, with version numbers that match exactly. When ScalaTest 2.1 is released, for example, Scalactic 2.1 will also be released.
  • You can use Scalactic in your production code and tests no matter what test framework you use.

To get started learning Scalactic, take a look at custom equality.

Scalactic is brought to you by Bill Venners, with contributions from several other folks. It is sponsored by Artima, Inc.
ScalaTest is free, open-source software released under the Apache 2.0 license.

Copyright © 2009-2024 Artima, Inc. All Rights Reserved.

artima