Home » Software Testing

Randomized Testing for JUnit

18 March 2013 No Comment

We have been taught that unit tests should be repeatable and most people (including the author) for a long time considered this an equivalent to “static”, single-path execution. Solr and Lucene employed an interesting JUnit runner strategy where tests are randomized: run with various data, various implementation of allowed interfaces, various configurations.

The number of combinations makes running all of them as individual tests and execution randomization proves very successful at pinpointing implementation and regression bugs. This talk will provide an overview of this approach and practical considerations on when and how to port them to your own projects. The presentation is based on an open source scaffolding code for running randomized tests and for running tests on separate parallel JVMs.

Video Producer: GeeCON

Related Posts:

Comments:

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*