Fork me on GitHub
#testing
<
2016-09-20
>
bhagany04:09:43

Having some trouble trying to get doo to run the “free” generative tests that spec gives you - curious how other people are doing this

bhagany04:09:03

Doesn’t have to be doo, it’s just what I’ve used for cljs testing in the past

Geoffrey Gaillard08:09:46

Hi @bhagany ! look in the #clojure-spec chan, @jmglov just posted some snippets with clojure.test & clojure.spec.test. Maybe it might help...

bhagany12:09:41

@ggaillard: indeed, I should be able to work with that. Thanks!

bhagany18:09:26

well, no dice. there are a few things going on that I don’t understand, and the furthest I’m able to get is that it appears to try to run a test, but then errors with "Couldn't satisfy such-that predicate after 100 tries.” The same spec works from a repl. Kind of stuck for now.

bhagany19:09:39

Would definitely like to see if anyone else has something like this working in cljs - some of the clj solutions don’t work (I think) because of differences in how macros are handled