HSpec, Tasty, sydtest, Hunit, ... -> what do you use for writing Haskell tests?

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • DocTest

    An implementation of Python's doctest for Haskell (by sol)

    doctest for testing examples in the documentation. Docs are much clearer when they contain usage examples and doctest helps them keep up to date.

  • registry

    Components as records of functions for Haskell (by etorreborre)

    Additionally I have some code to run one Test (single test or test group) from GHCi by passing the function name (run) or a subset of the tests by passing a regexp of the description (runOnly). You can find some of those functions here: https://github.com/etorreborre/registry/blob/main/test/Test/Tasty/Extensions.hs.

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts