Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

Hspec

Free#26 of 32 in Unit Testing FrameworksUnit Testing

Hspec: A strong Haskell choice for BDD-style examples and property-based testing. Ranked #26 of 32 in Unit Testing Frameworks by our editors (6.5/10); pricing: Free plan; best for haskell teams wanting BDD and properties.

6.5/10Editor score
Hspec6.5 Visit Hspec

At a glance

  • Editor score
    6.5 / 10
  • Pricing
    Free plan
  • Best for
    Haskell teams wanting BDD and properties
  • Free plan
    Yes
  • Paid from
    Free
  • Supported languages
    Haskell
  • Facts checked
    21 Sep 2026
Hspec screenshot
  • Where it wins

    • Behavior-oriented DSL with describe, context, and it
    • QuickCheck integration plus HUnit interoperability
    • Parallel execution, discovery, and pattern-based test selection
  • Where it doesn't

    • Supports Haskell rather than multi-language test suites
    • Its strongest fit is behavior- and property-oriented testing
    • Teams outside the Haskell ecosystem need another framework

Our verdict on Hspec

Hspec is an open-source unit testing framework for Haskell developers who want behavior-oriented specifications and property-based testing in compiled or interpreted Haskell projects. Its DSL organizes examples with describe, context, and it, giving teams a structured way to express expected behavior. Expectation combinators cover equality, predicates, and exceptions, while setup and teardown hooks support lifecycle work around individual test items. Hspec is a focused fit for Haskell teams that value readable specifications alongside conventional unit tests.

The framework’s main depth is its combination of example-based and property-based workflows. QuickCheck integration lets Haskell developers include properties in the same testing approach, while HUnit interoperability supports existing HUnit tests. The published feature set also includes automatic discovery of test files, individual test selection through pattern matching, and parallel execution across multiple CPUs. Together, these capabilities support projects that need both expressive test organization and practical ways to select or scale test runs.

Hspec is distributed as an MIT-licensed Haskell package, making it a strong option for teams seeking an open-source framework with a narrow language focus. Choose it when your project is in Haskell and your testing style benefits from BDD structure, expectations, hooks, and QuickCheck properties. Its scope is less suitable for organizations standardizing one testing framework across several programming languages or teams that do not work within the Haskell ecosystem. For Haskell projects already using QuickCheck, SmallCheck, or HUnit, the interoperability options make Hspec a particularly coherent fit.

Your product? Our editors can test Hspec in depth and publish a review, labelled as paid · from $149/mo →

Hspec pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on hspec.github.io

Hspec fact sheet

Free planYes
Paid fromFree
Supported languagesHaskell
Built-in mocksNot verified
Parameterized casesNot verified
Parallel executionYes
Snapshot testingNot verified
Property-based checksYes
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations3 integrations: QuickCheck, SmallCheck, HUnit
PricingFree plan
Websitehspec.github.io
Facts checked21 Sep 2026

Hspec integrations

Hspec lists 3 integrations on its own site.

  • QuickCheck
  • SmallCheck
  • HUnit

Alternatives to Hspec

See all Hspec alternatives →

Also Ranked In

Hspec is ranked in 2 of our directories.

Used Hspec? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Hspec for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Hspec 6.5/10

Hspec is listed in our Unit Testing Frameworks directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/hspec/"><img src="https://www.itechguides.com/best/badge/hspec.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update