- Haskell Platform. It includes (among other things) Cabal – Haskell build system.
- HSpec – Haskell testing library
cabal update && cabal install hspec
- Ruby – install through rvm, your OS package manager or use system-provided Ruby interpreter.
- Guard and guard-haskell – for watching your code and executing tests on change
gem install guard-haskell
- in your project –
your-project-name.cabalbuild descriptor (and of course some code and its tests)
I created a sample project – hspec-kicstart – that bundles everything together.
It has a minimal
Cabal configuration, more-than-trivial production code and the test.
After cloning the project
should tell you
1 of 1 test suites (1 of 1 test cases) passed.
and then Enter (runs all tests) yields
1 example, 0 failures.
Clone it, play with it and enjoy!