Whenever I use QuickChick in Coq, it has a default of 10000 tests. Is there a way to change this default value to generate a different amount of tests?
I figured out a way:
Extract Constant Test.defNumTests => "42".
QuickChick test_predicate.
Will test test_predicate
up to 42 times:
+++ Passed 42 tests (0 discards)
You could also try using QuickChickWith
, stdArgs
and updMaxSuccess
as follows:
QuickChickWith (updMaxSuccess stdArgs 42) test_predicate.
However, most of the time I use your extraction hack to avoid large natural numbers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With