HUnit-Plus VS DocTest

Compare HUnit-Plus vs DocTest and see what are their differences.


A test framework expanding on the HUnit Haskell testing package (by emc2)


An implementation of Python's doctest for Haskell (by sol)
Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • - Download’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
HUnit-Plus DocTest
0 2
1 339
- -
0.0 5.2
over 5 years ago 7 days ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License MIT 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.


Posts with mentions or reviews of HUnit-Plus. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning HUnit-Plus yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of DocTest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-19.
  • Why is the debugger so bad in Haskell? (or is it just me)
    3 projects | | 19 Oct 2021
    Try to restrict your types even on sub functions (inside where), use testing, break down your code to the most atomic parts, using ghci to debug each part once at a time, and because Haskell doesn't let you reuse variables, or mutate state, it's a lot easier to rationalize evaluation order (which makes it a lot easier to debug without step debuggers compared to languages like python).

What are some alternatives?

When comparing HUnit-Plus and DocTest you can also consider the following projects:

hspec - A Testing Framework for Haskell

tasty - Modern and extensible testing framework for Haskell

hspec-expectations - Catchy combinators for HUnit


titan - Testing Infrastructure for Temporal AbstractioNs

hspec-wai - Helpers to test WAI applications with Hspec

smartcheck - A Smarter QuickCheck

silvi - Haskell library for generating fake data.

genvalidity - Validity and validity-based testing

smallcheck - Test your Haskell code by exhaustively checking its properties

quickspec - Equational laws for free