A Testing Framework for Haskell


Version on this page:2.1.2@rev:1
LTS Haskell 22.26:2.11.9
Stackage Nightly 2024-06-21:2.11.9
Latest on Hackage:2.11.9

See all snapshots hspec appears in

MIT licensed
Maintained by Simon Hengel
This version can be pinned in stack with:hspec-2.1.2@sha256:0340d058c808dfe51468de6d5aa52501134650bf057634ab8499d1531b9473f8,2094

Module documentation for 2.1.2

  • Test
    • Test.Hspec
      • Test.Hspec.Core
      • Test.Hspec.Discover
      • Test.Hspec.Formatters
      • Test.Hspec.HUnit
      • Test.Hspec.QuickCheck
      • Test.Hspec.Runner

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