A Testing Framework for Haskell


Version on this page:2.1.10@rev:1
LTS Haskell 21.13:2.10.10
Stackage Nightly 2023-09-24:2.11.5
Latest on Hackage:2.11.5

See all snapshots hspec appears in

MIT licensed
Maintained by Simon Hengel
This version can be pinned in stack with:hspec-2.1.10@sha256:4d0f588c88aadab3f3d4b631e4639221fa0770893b5d1298cf938ab0f2048907,2098

Hspec is a testing framework for Haskell. It is inspired by the Ruby library RSpec. Some of Hspec's distinctive features are:

  • a friendly DSL for defining tests

  • integration with QuickCheck, SmallCheck, and HUnit

  • parallel test execution

  • automatic discovery of test files

The Hspec Manual is at http://hspec.github.io/.