testing

Testing tools, testing philosophy & methodology...
bhagany 2016-09-20T04:01:43.000007Z

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

bhagany 2016-09-20T04:02:03.000008Z

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

Geoffrey Gaillard 2016-09-20T08:44:46.000009Z

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

bhagany 2016-09-20T12:09:41.000010Z

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

bhagany 2016-09-20T18:59:26.000011Z

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.

bhagany 2016-09-20T19:00:39.000012Z

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