Popularity
2.2
Declining
Activity
0.0
Stable
3
2
1

Monthly Downloads: 13
Programming language: Haskell
License: MIT License
Tags: Testing     Doctest    

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.

Do you think we are missing an alternative of doctest-prop or a related project?

Add another 'doctest' Package

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