Haskell Testing

Open-source Haskell projects categorized as Testing

Top 23 Haskell Testing Projects

  • hspec

    A Testing Framework for Haskell

    Project mention: Show HN: IHP v1.0 (Batteries-included web framework built on Haskell and Nix) | news.ycombinator.com | 2022-10-24

    While of course Haskell has more normal testing infrastructure available (eg. https://hspec.github.io/), my favorite bit of Haskell testing is QuickCheck, which IIUC started life in Haskell and has been reimplemented in other languages with various degrees of effectiveness and various degrees of connection to the original project.

    John Hughes (not the filmmaker) gives a great talk about it: https://youtu.be/zi0rHwfiX1Q

  • QuickCheck

    Automatic testing of Haskell programs. (by nick8325)

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • hedgehog

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

    Project mention: Monthly Hask Anything (May 2022) | reddit.com/r/haskell | 2022-05-03

    I've had some PRs open on hedgehog for one and two months respectively. It looks like the maintainer isn't currently very active, which is fair enough. This isn't about criticizing him, and I'm not trying to take over the repo.

  • tasty

    Modern and extensible testing framework for Haskell

  • DocTest

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

    Project mention: HSpec, Tasty, sydtest, Hunit, ... -> what do you use for writing Haskell tests? | reddit.com/r/haskell | 2023-01-15

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

  • quickspec

    Equational laws for free

    Project mention: Is anyone using quickspec? | reddit.com/r/haskell | 2022-08-16

    It looks like that change is on github, but the version wasn't bumped, nor was it pushed to hackage https://github.com/nick8325/quickspec/blob/master/quickspec.cabal Perhaps try using github as the source instead of hackage?

  • async-dejafu

    Systematic concurrency testing meets Haskell.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • webdriver

    A Haskell client for the Selenium WebDriver protocol.

    Project mention: Web scraping library | reddit.com/r/haskell | 2022-10-04

    Here's a slightly different solution which could work: this Haskell library for Selenium works fine - I've used it. You could navigate to the page using Selenium and whatever supported browser you like (Chrome, Firefox, Edge etc.) and then evaluate a Javascript snippet on the page, via the Selenium API, to retrieve the value you want. One potential advantage of this is it'll work on highly Javascript-dependent pages.

  • genvalidity

    Validity and validity-based testing

    Project mention: Deriving via type parameters | reddit.com/r/haskell | 2023-01-26

    I test it using the validity package (which seems to be similar to the more well-known checkers package, but has got more "stars" on GitHub).

  • curl-runnings

    A declarative test framework for quickly and easily writing integration tests against JSON API's.

  • smallcheck

    Test your Haskell code by exhaustively checking its properties

    Project mention: [ANN] LeanCheck v1.0.0 – Enumerative Property Testing | reddit.com/r/haskell | 2022-08-22

    Could you compare with https://hackage.haskell.org/package/smallcheck in particular the smallcheck ability "to verify properties for all test cases up to some depth"?

  • HUnit

    A unit testing framework for Haskell

  • shelltestrunner

    Easy, repeatable testing of CLI programs/commands

    Project mention: Dhall: A Gateway Drug to Haskell | news.ycombinator.com | 2022-06-07

    A few more:

    https://github.com/simonmichael/hledger - Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces

    https://github.com/simonmichael/shelltestrunner - Easy, repeatable testing of CLI programs/commands

    https://github.com/simonmichael/quickbench - Easily time one or more commands with one or more executables and show tabular results

    https://github.com/haskell-game/fungen - A lightweight, cross-platform, OpenGL-based 2D game engine in Haskell

    https://haskell-game.dev - a small selection of many games written in Haskell

  • checkers

    Check properties on standard classes and data structures

  • generic-random

    Generic random generators (by Lysxia)

  • fitspec

    refine properties for testing Haskell programs

  • monad-mock

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

  • ghc-prof-flamegraph

  • hspec-wai

    Helpers to test WAI applications with Hspec

  • hedgehog-classes

    Hedgehog will eat your typeclass bugs

  • HTF

    Haskell Test Framework

  • faker

    Faker is pure Haskell library for generating fake data. (by Lambda-Logan)

  • 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

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). The latest post mention was on 2023-01-26.

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 699
2 QuickCheck 642
3 hedgehog 638
4 tasty 586
5 DocTest 349
6 quickspec 233
7 async-dejafu 183
8 webdriver 180
9 genvalidity 152
10 curl-runnings 146
11 smallcheck 128
12 HUnit 109
13 shelltestrunner 96
14 checkers 80
15 generic-random 77
16 fitspec 73
17 monad-mock 71
18 ghc-prof-flamegraph 71
19 hspec-wai 59
20 hedgehog-classes 56
21 HTF 48
22 faker 46
23 type-spec 46
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com