Skip to content
0:00 / 0:00

#clojure#clojure.spec#generativetesting

Clojure spec Screencast: Leverage

ClojureTV

111K subscribers • 159 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • Presented by Stuart Halloway
  • Made by the vendor. The company whose product it covers made or sponsored it.

Intermediate. Assumes working knowledge.

15K views10 years ago3 recommendations

Programming languagesTools and practiceLisp and ClojureTesting

Stuart Halloway demonstrates how clojure.spec provides leverage for validation, destructuring, and generative testing in Clojure.

The new Clojure spec library provides support for data and function specification. In this screencast, Stuart Halloway discusses how spec provides leverage to achieve many returns for a small investment in describing your functions with spec. spec provides leverage in the following areas: - Validation - Conformance - Destructuring - Error messages - Composition - Example Data Generation - Assertion - Documentation - Generative Testing - Instrumentation

Why it's here

3 people recommend this

What people say. Recommended as a great introduction to how clojure.spec can generate test cases and document data structures.

u/__toshin r/Clojure • Recommends

Clojure spec Screencast Series

u/jmayaalvin r/Clojure • Recommends

On “New Clojurians: Ask Anything”

yes, spec can generate tests cases for you. Check it out on this video: link to this video the whole video is interesting but around minute 12 you can see an example of generative testing

u/SlightlyCyborgin r/Clojure • Recommends

On “New Clojurians: Ask Anything”

I think clojure.spec could help solve your problem. It is like an unenforced data structure documentation system. Here are some resources: the intro to spec rationale of spec spec guide. and finally, the spec video