Present Remotely

Send the link below via email or IM

Copy

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 the manual

Do you really want to delete this prezi?

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

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Generative testing in Clojure

No description
by 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
Generators
Two epic wins of
generative testing
Concepts
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
Validators
Code to be tested
Test spec
Generator
A declarative description of possible inputs to a function
Validator
Code that has access to the generators, the function being tested and the outputs - and validates them
Let's see some code
[org.clojure/data.generators]
[test.check]
Sampling
Combinators
More primitive generators
Record generators
Probabilistic choices
Test definition
[test.check]
Thank you
Separation of concerns
Wide(r) coverage of the input domain
:(
(Your mileage may vary)
Libs used:
test.check
data.generators
Disclaimer: no QA people were harmed in the making of this talk
See the full transcript