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.2), tasty (>=1.4 && <1.5), tasty-hedgehog (>=1.1 && <1.4) [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 2022-12-06T18:35:14Z
Distributions
Downloads 126 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-12-06 [all 1 reports]

Readme for prop-unit-0.1.1

[back to package description]

prop-unit

CircleCI

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