ScalaTest/Scalactic 2.2.4 Release Notes

ScalaTest/Scalactic 2.2.4 includes the enhancements listed below. No source code using ScalaTest/ScalaUtils 2.0 or higher should break, but from any version other than 2.2.0, 2.2.1, or 2.2.4 (with which this release is binary compatible), 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. For information on how to use Scalactic in your production code, see its download page.

Note: a 2.2.3 release was deployed, but the bug fix it was supposed to include was accidentally left out. Thus 2.2.3 contained no difference from 2.2.2.

Enhancements

  • Added a Chain type that represents a non-empty List, as well as an End object that can serve as a starting point for expressions like 1 :: 2 :: 3 :: End.
  • Added a from method to Or's companion object that takes an Option of the Good type and a by-name of the Bad type.
  • Added an OptionSugar trait that provides an implicit conversion that adds a toOr method to Option that takes a by-name of the Bad type. toOr will convert a Some to a Good and None to the given Bad value.
  • Added an TrySugar trait that provides an implicit conversion that adds a toOr method to Try. toOr will convert a Success to a Good and a Failure to a Bad.
  • Update ScalaCheck dependency to version 1.12.1.
  • Use hard-coded 127.0.0.1 as the host name for the socket reporter when running sbt in fork mode. This fixed a spurious stack trace annoyance.

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-2019 Artima, Inc. All Rights Reserved.

artima