hspec VS HUnit

Compare hspec vs HUnit and see what are their differences.

hspec

A Testing Framework for Haskell (by hspec)

HUnit

A unit testing framework for Haskell (by hspec)
Our great sponsors
  • Zigi - Workflow assistant built for devs & their teams
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
hspec HUnit
2 1
678 106
1.5% 1.9%
8.4 2.6
4 days ago 7 months ago
Haskell Haskell
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

hspec

Posts with mentions or reviews of hspec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-24.

HUnit

Posts with mentions or reviews of HUnit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-03.
  • A CRUD journey in Haskell, part I, introduction
    2 projects | dev.to | 3 Aug 2021
    Testing is a good engineering practice agnostic to technology or tooling. Haskell is no different and the community created a great tool for Unit testing called HUnit, inspired by the Java JUnit.

What are some alternatives?

When comparing hspec and HUnit you can also consider the following projects:

tasty - Modern and extensible testing framework for Haskell

QuickCheck - Automatic testing of Haskell programs.

HUnit-Plus - A test framework expanding on the HUnit Haskell testing package

hspec-checkers - Allows to use checkers properties from hspec

HTF - Haskell Test Framework

hspec-jenkins

quickspec - Equational laws for free

hspec-expectations-json - Hspec expectations on JSON Values

test-fixture - Testing with monadic side-effects