Clojure spec Screencast: Customizing Generators

One benefit of Clojure specs is that they automatically provide data generators that produce values conforming to the spec which can be used for testing. In addition, you can compose your own generator to more precisely match your data model.

In this screencast, Stuart Halloway demonstrates techniques for creating and combining models of your input using the `bind` and `fmap` functions to produce custom generators.

Find out how Cognitect can help you get the most out of Clojure, including bringing your team up to speed on tools and practices, and introducing the latest additions to the ecosystem.