A Testing Framework for Haskell


Version on this page:2.2.4@rev:1
LTS Haskell 21.24:2.10.10
Stackage Nightly 2023-12-09:2.11.7
Latest on Hackage:2.11.7

See all snapshots hspec appears in

MIT licensed
Maintained by Simon Hengel
This version can be pinned in stack with:hspec-2.2.4@sha256:eb22cb737adc3312b21699b6ac4137489590ada1ee9ee9ae21aae3c342b3880f,2375

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/.