Clojure spec Screencast: Customizing Generators

4,693 views · Published 10 August 2016 · 13:01 · Indexed 12 November 2026

Channel: ClojureTV · 2016 · Science & Technology

Watch on YouTube

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.

More from this channel