[Haskell] ANNOUNCE: hspec-0.2.0 (now on hackage!)

Trystan Spangler Trystan.s at comcast.net
Thu Feb 17 01:11:50 CET 2011


hspec, Behavior Driven Development for Haskell, is now version 0.2.0 and on Hackage!

hspec version 0.2.0
 - still allows boolean expressions or QuickCheck properties to act as examples
 - still allows examples to be pending
 - now allows HUnit test to act as examples
 - now catches exceptions and treats them as failed examples
 - has much improved haddock documentation
 - has many examples in the haddock documentation

From the haddock description:
Hspec is a Behaviour-Driven Development tool for Haskell programmers. BDD is an approach to software development that combines Test-Driven Development, Domain Driven Design, and Acceptance Test-Driven Planning. Hspec helps you do the TDD part of that equation, focusing on the documentation and design aspects of TDD.

Hspec (and the preceding intro) are based on the Ruby library RSpec. Much of what applies to RSpec also applies to Hspec. Hspec ties together *descriptions* of behavior and *examples* of that behavior. The examples can also be run as tests and the output summarises what needs to be implemented.

You can find it on Hackage:
  cabal install hspec

You can find it on github:
  https://github.com/trystan/hspec

Any advice, comments, or questions are welcome,
Trystan


More information about the Haskell mailing list