Hey folks,
Sorry if this has been answered elsewhere (in which case, please point me in the right direction), but why doesn’t clojure.spec.test.alpha/instrument
test anything other than the :args
of an fdef
?
I was hoping to use instrumentation to replace specifying :pre
and :post
conditions on functions. Instrumentation would give a finer grain control over when I take a performance hit for validation, as I would only have to turn it on for functions I care about during dev.
However, it appears it doesn’t check the :ret
or :fn
params of the fdef
. I know these can be useful for generating test data, but that isn’t very helpful for my use case.
Or am I just missing something?
Thanks,
–Darren
4 posts - 2 participants