Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.


Generative testing in Clojure

No description

Csaba Okrona

on 11 June 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Generative testing in Clojure

Generative testing in Clojure
Example based tests combining input generation, execution, output capture and validation inside single functions
Traditional unit tests
Two epic wins of
generative testing
Generator examples
more with
Traditional tests
Generative tests
hand-picked samples of the input domain
Traditional unit tests
vs. generative tests
Can be automated, but usually not trivial to decouple / generate
Code to be tested
Test spec
A declarative description of possible inputs to a function
Code that has access to the generators, the function being tested and the outputs - and validates them
Let's see some code
More primitive generators
Record generators
Probabilistic choices
Test definition
Thank you
Separation of concerns
Wide(r) coverage of the input domain
(Your mileage may vary)
Libs used:
Disclaimer: no QA people were harmed in the making of this talk
Full transcript