The F# 188.8.131.52 release is a very important release. F# developers get much deeper support in Visual Studio, for one, and this led a complete overhaul of the tests behind FsUnit. I prefer to do test-driven development when I can, thus a rewrite of the tests meant a rewrite of the framework itself. Everything ended up pretty much the same as it was in the previous release (0.5.0) with a couple of minor changes.
The first important change was better messages with failures and errors. The previous release didn't always provide informative messages. With this release, you should always receive enough information to identify the problem.
The second important change involves better support for exceptions that may occur when running your specs. Exceptions should not prevent any other specification from running and should one occur, you should get a full stack trace along with the exception message.
Finally, there was a slight change to the
specfunction. Use of
specstill evaluates your specification, but it no longer adds it to the internal mutable results collection. I wanted to leave mutable state out of the framework wherever possible, thus,
specnow returns a
string * Resultpair and programmers can choose to use or not to use state in their specifications. If you're lazy like me, you can use the
specsfunction to have FsUnit track your results for you.
See the project home page, the project wiki, or the included examples for more information about the project. Please check it out and let me know how I can make it better!