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

[ bsd3, library, testing ] [ Propose Tags ]

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
Dependencies base (>=4.12 && <5), hedgehog (>=1.0 && <1.3), tasty (>=1.4 && <1.5), tasty-hedgehog (>=1.1 && <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 2023-11-25T22:36:16Z
Distributions
Downloads 126 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-11-26 [all 1 reports]

Readme for prop-unit-0.1.2

[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