doctest-prop alternatives and similar packages
Based on the "doctest" category.
Alternatively, view doctest-prop alternatives based on common mentions on social networks and blogs.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of doctest-prop or a related project?
README
doctest-prop
Now that the upstream package doctest has integrated support for QuickCheck properties, this package had fulfilled its role and is deprecated. Please use the quickcheck properties in doctest.
What this package used to be
This package allows you to write QuickCheck properties within doctest, using functions that keep silence when test succeeds and print out the test outputs otherwise.
To enjoy behavior driven development in Haskell, first import
Test.DocTest.Prop
, and use prop
, propWith
and unit
to write
in-place tests, as follows.
import Test.DocTest.Prop
prop $ \x -> x*2 == x+x
prop ((<2) . fromEnum :: Bool -> Bool)
propWith (quietArgs{maxSize=3}) $ (<10).length
assert $ 1+1==2