Yes, check will attempt to shrink when an error is found.
On Wednesday, March 7, 2018 at 9:43:32 AM UTC-6, Chris Shellenbarger wrote:
>
> Alex,
> When I attempt to specify :num-tests, ie:
>
> (stest/check `do-something {:clojure.spec.test.check/opts {:num-tests 10}})
>
> It usually seems to
Alex,
When I attempt to specify :num-tests, ie:
(stest/check `do-something {:clojure.spec.test.check/opts {:num-tests 10}})
It usually seems to work, but sometimes I can see code executing far more
than the number of tests I've specified. This appears to be correlated to
when it finds a
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email
As the docstring for check notes:
"The opts map includes the following optional keys, where stc
aliases clojure.spec.test.check:
::stc/opts opts to flow through test.check/quick-check
:genmap from spec names to generator overrides"
So the opts map would be like:
(stest/check `myfunc {:
Hi,
(stest/check `myfunc) runs very, very long
so i tried
(stest/check `myfunc {:num-tests 2})
but unfortunately that does not restrict the number of test.
Can anybody help?
Kind regards, Burt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To p