Haskell Testing

Open-source Haskell projects categorized as Testing

Top 23 Haskell Testing Projects

  • hspec

    A Testing Framework for Haskell

  • QuickCheck

    Automatic testing of Haskell programs. (by nick8325)

  • Project mention: Ask HN: Is writing a math proof like programming without ever running your code? | news.ycombinator.com | 2023-04-27

    Quickcheck is a Haskell testing library which allows the programmer to write propositions about how a function should behave, and the library will try to find cases which falsify the proposition.

    If my understanding is correct, it can't "prove" any properties, only disprove them.

    For concretely proving properties of a program, you would need something like Idris's dependent type system, where you can prove that a function always returns a sorted list, for example.

    https://github.com/nick8325/quickcheck

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • hedgehog

    Release with confidence, state-of-the-art property testing for Haskell.

  • tasty

    Modern and extensible testing framework for Haskell

  • DocTest

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

  • quickspec

    Equational laws for free

  • async-dejafu

    Systematic concurrency testing meets Haskell.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • webdriver

    A Haskell client for the Selenium WebDriver protocol.

  • genvalidity

    Validity and validity-based testing

  • curl-runnings

    A declarative test framework for quickly and easily writing integration tests against JSON APIs.

  • smallcheck

    Test your Haskell code by exhaustively checking its properties

  • Project mention: Generating Well-Typed Terms that are not "Useless" [pdf] | news.ycombinator.com | 2023-10-27

    Using laziness to avoid generating parts of an expression until it's needed is a really nice idea. The LazySmallCheck package[1] took this approach, but was limited in the types of data it could produce (e.g. it couldn't generate functions). This was extended by LazySmallCheck2012[2], but that seems to be unmaintained and doesn't work with more recent GHC versions.

    (Note that these are named in reference to SmallCheck[3], which takes the approach of enumerating concrete values in order of "size"; as an alternative to the more widely-used QuickCheck[4], which generates concrete values at random, and tries to "shrink" those which trigger a failure)

    [1] https://hackage.haskell.org/package/lazysmallcheck

    [2] https://github.com/UoYCS-plasma/LazySmallCheck2012

    [3] https://hackage.haskell.org/package/smallcheck

    [4] https://hackage.haskell.org/package/QuickCheck

  • HUnit

    A unit testing framework for Haskell

  • shelltestrunner

    Easy, repeatable testing of CLI programs/commands

  • generic-random

    Generic random generators (by Lysxia)

  • checkers

    Check properties on standard classes and data structures

  • fitspec

    refine properties for testing Haskell programs

  • ghc-prof-flamegraph

  • monad-mock

    A Haskell package that provides a monad transformer for mocking mtl-style typeclasses

  • hspec-wai

    Helpers to test WAI applications with Hspec

  • hedgehog-classes

    Hedgehog will eat your typeclass bugs

  • leancheck

    enumerative property-based testing for Haskell

  • Project mention: Help with stack ghci and LeanCheck | /r/haskell | 2023-12-11

    Hey, I am an IT student, and was given the task to install Leancheck. I managed to do that by following the instructions on: https://github.com/rudymatela/leancheck/blob/master/README.md Now it works if I do "ghci" and then "import Test.LeanCheck".

  • HTF

    Haskell Test Framework

  • type-spec

    A tiny EDSL to write type-level-unit tests

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Haskell Testing related posts

Index

What are some of the best open-source Testing projects in Haskell? This list will help you:

Project Stars
1 hspec 736
2 QuickCheck 692
3 hedgehog 661
4 tasty 628
5 DocTest 369
6 quickspec 247
7 async-dejafu 190
8 webdriver 189
9 genvalidity 154
10 curl-runnings 147
11 smallcheck 133
12 HUnit 119
13 shelltestrunner 119
14 generic-random 81
15 checkers 79
16 fitspec 74
17 ghc-prof-flamegraph 73
18 monad-mock 71
19 hspec-wai 64
20 hedgehog-classes 56
21 leancheck 51
22 HTF 50
23 type-spec 49

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com