The Artima Developer Community
Sponsored Link

Angle Brackets and Curly Braces
ScalaTest 1.6.1.RC1 for Scala 2.9.0 Released
by Bill Venners
June 5, 2011
Summary
Today I released a candidate for the next version of ScalaTest for Scala 2.9.0, ScalaTest 1.6.1.RC1. This release includes all the enhancements of ScalaTest 1.5, plus one new trait, BeforeAndAfter, a few deprecations, and improved documentation.

Advertisement

Today I released ScalaTest-1.6.1.RC1 for Scala 2.9.0. This release includes several major enhancements from ScalaTest 1.4.1, the previous release for Scala 2.9.0, including:

For a complete list of the changes from ScalaTest 1.4.1, see the release notes for ScalaTest 1.5, which had the same changes relative to ScalaTest 1.3.

In addition, 1.6.1.RC1 includes a few other enhancements relative to ScalaTest 1.5:

I reworked the Scaladoc documentation describing shared fixtures to make clearer the intent and tradeoffs of each way of doing shared fixtures. For an example, read through: the relevant documentation for FunSuite.

I added the BeforeAndAfterEach/AllFunctions traits in 1.3. I deprecated them for two reasons. One is that the trait names were too long. The other was that BeforeAndAfterEachFunctions has a beforeEach method that takes one parameter, and so does BeforeAndAfterEach. If these two traits were mixed together there was an (extremely unlikely) chance you could accidentally invoke the wrong beforeEach. BeforeAndAfter replaces BeforeAndAfterEachFunctions, with before replacing beforeEach. If you used BeforeAndAfterEachFunctions, you can get rid of the deprecation warning by changing your code to use BeforeAndAfter instead. If you used BeforeAndAfterAllFunctions, you can get rid of the deprecation warning by changing your code to use BeforeAndAfterAll instead.

I deprecated the MultipleFixtureXXX traits because I decided that using explicit conversions to implement multiple fixtures yields more readable code than using implicit conversions. You can continue to use the implicit conversion approach if you wish, of course. To get rid of the deprecation warning, change "MultipleFixtureXXX" to "FixtureXXX with ConfigMapFixture".

Give it a try

You can download ScalaTest-1.6.1.RC1 for Scala 2.9.0 via the scala-tools.org Maven repository with:

Or you can just grab the jar file from:

http://www.scala-tools.org/repo-releases/org/scalatest/scalatest_2.9.0/1.6.1.RC1/scalatest_2.9.0-1.6.1.RC1.jar

I put the Scaladoc for this release candidate up here:

http://www.artima.com/docs-scalatest-1.6.1.RC1/

ScalaTest 1.6.1 for Scala 2.9.0 will be released final as soon as an RC proves itself to be worthy. Please give it a try and let me know if you find if any bugs or code-breakages. (I expect no source code to break with this release, so let me know if you have a problem.) Please post feedback to the discussion forum for this blog post, or email the scalatest-users mailing list. (Once 1.6.1 is out in final form, I'll also release a ScalaTest 1.5.1 that has the exact same features, but for Scala 2.8.1.)

Advertisement
Escalate Logo Next Scala training course:
Applied and Advanced Scala:August 8th - 12th, 2011
in San Francisco, CA. Find out more

Talk Back!

Have an opinion? Be the first to post a comment about this weblog entry.

RSS Feed

If you'd like to be notified whenever Bill Venners adds a new entry to his weblog, subscribe to his RSS feed.

About the Blogger

Bill Venners is president of Artima, Inc., publisher of Artima Developer (www.artima.com). He is author of the book, Inside the Java Virtual Machine, a programmer-oriented survey of the Java platform's architecture and internals. His popular columns in JavaWorld magazine covered Java internals, object-oriented design, and Jini. Active in the Jini Community since its inception, Bill led the Jini Community's ServiceUI project, whose ServiceUI API became the de facto standard way to associate user interfaces to Jini services. Bill is also the lead developer and designer of ScalaTest, an open source testing tool for Scala and Java developers, and coauthor with Martin Odersky and Lex Spoon of the book, Programming in Scala.

This weblog entry is Copyright © 2011 Bill Venners. All rights reserved.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use