Fork me on GitHub
#clojure-spec
<
2019-06-14
>
dmarjenburgh13:06:26

Is there a convenient way to separate specs definitions and their generators? I want to define my specs with my main code, but only use generators in test code. I include test.check in my classpath only with the test alias. I know spec loads generators lazily for this purpose, but not sure how to use s/with-gen when the generator argument uses stuff depending on test.check

dmarjenburgh13:06:32

Okay, I think I got it. I was calling gen/fmap when my namespace of custom generators was loaded.