Testing in functional languages can be done in the same style as in OO languages. However, FP has certain properties which allow different ways of testing and writing code.
In this session we will have a look at two frameworks which makes it possible to write tests in new and better ways. This time, our modest goal, is only to blow your mind! ;)
ScalaCheck - Jon Anders Teigen
ScalaCheck started out as a Scala port of the Haskell library QuickCheck, and has since evolved and been extended with features not found in Haskell QuickCheck.
Why write assertions when we have frameworks that can generete them for you?
Midje - Geir Amdal
Midje is a test framework for Clojure. It was created to support top-down as well as bottom-up testing, to encourage readable tests, to support a balance between abstraction and concreteness, and to be gracious in its treatment of you, the programmer.
Midje encourages a different style of mocking which enables new ways solving problems.