prop-unit: Conveniences for using Hedgehog as a unit test runner

[ bsd3, library, testing ] [ Propose Tags ] [ Report a vulnerability ]

Please see the README on GitHub at https://github.com/ejconlon/prop-unit#readme


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3
Dependencies base (>=4.12 && <5), hedgehog (>=1.4 && <1.5), tasty (>=1.4 && <1.6), tasty-hedgehog (>=1.4 && <1.5) [details]
License BSD-3-Clause
Copyright (c) 2022 Eric Conlon
Author Eric Conlon
Maintainer ejconlon@gmail.com
Category Testing
Home page https://github.com/ejconlon/prop-unit#readme
Bug tracker https://github.com/ejconlon/prop-unit/issues
Source repo head: git clone https://github.com/ejconlon/prop-unit
Uploaded by ejconlon at 2024-10-22T21:56:05Z
Distributions
Downloads 189 total (27 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-10-22 [all 1 reports]

Readme for prop-unit-0.1.3

[back to package description]

prop-unit

Conveniences for using Hedgehog as a unit test runner

It's a pain to share assertions between Hedgehog and HUnit. My solution is to basically turn unit tests into really simple property-based tests!

Useful environment variables:

# Turn on "debug mode" (default 0)
# Changes buffering and threading for easier debugging
PROP_UNIT_DEBUG=1

# Increase test examples (default 100)
# Only has effect on true property-based tests
PROP_UNIT_LIMIT=1000