kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
vikeri 2019-08-12T12:39:10.079800Z

Are there any fancy plugins for testing if a data structure adheres to a clojure.spec?

vikeri 2019-08-12T12:39:29.080200Z

I can do a s/valid? but it’s not very informative

avi 2019-08-12T16:36:40.080400Z

See https://clojure.org/guides/spec#_explain

avi 2019-08-12T16:36:55.080600Z

No plugins needed.

avi 2019-08-12T16:39:03.081600Z

e.g. you could use s/explain-str as the “message” for when an assertion using s/valid? fails — I do this in my project