ScalaTest 2.1.0 includes the enhancements, deprecations, "resurrections," and bug fixes listed below. No source code using ScalaTest 2.0 should break, but you will likely need to do a clean build to upgrade.
For information on how to include ScalaTest in your project, see the download page.
RandomTestOrder
trait.Prettifier
to prettify objects inside Scala and Java collections, Option
, Either
, Try
, and ScalaUtils' Or
and >>Every
.badMap
and fold
methods to Or
.assertResult
call .deep
on Array
s in Assertions
to make it consistent with other ways to check equality in ScalaTest.toEquality
method on Uniformity
and a toEquivalence
method on Normalization
to provide a way
to convert a normalization to an equality without using the Explicitly
DSL. Modified Scaladoc documentation to include
examples of explicitly specifying equality without using the Explicitly
DSL, for people who prefer to avoid English-like DSLs in production code.Inside
's error messages.SuiteAborted
events show up in remindersPretty
in ScalaTest error messages if it is supplied via a custom generator.Every
in ScalaTest matchers.Serializable
that could occasionally get serialized in ScalaTest events sent across the network.AlertProvided
if memory file contains test that cannot be rerun.MustMatchers
in package org.scalatest
.
Changed deprecation warning for org.scalatest.matchers.MustMatchers
to suggest using org.scalatest.MustMatchers
instead of org.scalatest.Matchers
, which was the suggestion in 2.0. Apologies to must
users who migrated to should
already when upgrading to 2.0. This resurrection was made possible by a suggestion by Viktor Klang to use the verb "will
" instead of "must
" for pure matchers (that return a result instead of throwing an exception), which may appear in a future version of ScalaTest.evaluating { ... } should produce [...Exception]
syntax, which I intended to deprecate in 2.0.assert
/assume
macros that caused them to accidentally invoke by-names eagerly.Visit ScalaTest Release Notes for links to the release notes of all previous versions, or step back in time by visiting the release notes for the previous version.
ScalaTest is brought to you by Bill Venners and Artima.
ScalaTest is free, open-source software
released under the Apache
2.0 license.
If your company loves ScalaTest, please consider sponsoring the project.
Copyright © 2009-2025 Artima, Inc. All Rights Reserved.