Skip to content

Commit

Permalink
Merge pull request #134 from chris-martin/pr/once
Browse files Browse the repository at this point in the history
Add doc explaining use of "withTests 1"
  • Loading branch information
thumphries committed Feb 1, 2018
2 parents d31afdd + 7adf0ba commit f70e1ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hedgehog/src/Hedgehog/Internal/Property.hs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,10 @@ mapConfig f (Property cfg t) =
-- | Set the number times a property should be executed before it is considered
-- successful.
--
-- If you have a test that does not involve any generators and thus does not
-- need to run repeatedly, you can use @withTests 1@ to define a property that
-- will only be checked once.
--
withTests :: TestLimit -> Property -> Property
withTests n =
mapConfig $ \config -> config { propertyTestLimit = n }
Expand Down

0 comments on commit f70e1ce

Please sign in to comment.