Announcing Hegel-clj 0 ▲ Aphyr 3 days ago · 10 min read2057 words · Tech · hide I’ve just released hegel-clj, a Clojure interface for the Hegel generative testing library. You can jump right to the docs, but I thought it might be interesting to explain why I want another testing library. I do a lot of generative testing in Clojure with the excellent test.check. However, using test.check can be frustrating! In particular, complex generators can get stuck during shrinking, leaving me trying to prune down a complex data structure by hand. The culprit is usually bind. If you’re not familiar with test.check, Quickcheck, or other libraries in this family, bind is a generator which draws some random value, then uses that to construct a new generator, which in turn is used to draw some other value. (require '[clojure.test.check :as tc] '[clojure.test.check.generators :as tcg] '[clojure.test.check.properties :as tcp]) (tcg/bind ; Take a number from `nat`, a generator of small positive ; integers. tcg/nat ; Now with that number, construct a generator of vectors, each ;… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town