Midje's special blend of generative-style testing.
Midje's special blend of generative-style testing.
The number of trials generated per formula.
The number of trials generated per formula.
(formula docstring? opts-map? bindings & body)
Generative-style fact macro.
Ex. (formula "any two strings concatenated begins with the first" [a (gen/string) b (gen/string)] (str a b) => (has-prefix a))
Currently, we recommend you use generators from test.generative.generators.
opts-map keys:
:num-trials - Used to override the number of trials for this formula only. This is higher precedence than num-trials Must be set to a number 1 or greater.
The num-trials dynamic var determines how many facts are generated per formula.
Generative-style fact macro. Ex. (formula "any two strings concatenated begins with the first" [a (gen/string) b (gen/string)] (str a b) => (has-prefix a)) Currently, we recommend you use generators from test.generative.generators. opts-map keys: :num-trials - Used to override the number of trials for this formula only. This is higher precedence than *num-trials* Must be set to a number 1 or greater. The *num-trials* dynamic var determines how many facts are generated per formula.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close