My Pittsburgh Scala Meetup talk on property-based testing using ScalaCheck

Tonight was the third meeting of the Pittsburgh Scala Meetup. Our last meeting was in late February, and we didn’t have a meeting in March.


This time there were only six of us in attendance, but that had its advantages, as it resulted in everyone really participating fully in discussion.


I gave a presentation “Beyond xUnit example-based testing: property-based testing with ScalaCheck” as an introduction to property-based testing, with examples using ScalaCheck.

I prepared the presentation with the goal of spreading the word on property-based testing as a complement to much more widely used methods of testing in the TDD/BDD software development communities. My impression has been that outside of the functional programming communities such as those in Haskell (the pioneer of QuickCheck), ML, and Haskell, there has not been as much use of property-based methods of design and testing. Fortunately, this has been changing.

In any case, I personally can no longer imagine not starting out design exploration without using ScalaCheck on Scala or Java based projects. It’s a useful additional tool for the developer’s toolkit.

Slides and code

My slides are available on slideshare, and a full SBT project of the code is on GitHub.

Note that the slides are not in any way a substitute for the actual talk and the questions and answers and discussion during and after it! They are most useful as memory joggers for those who actually attended the presentation. A set of slides is nothing resembling a technical article or a blog post.

Beyond xUnit example-based testing: property-based testing with ScalaCheck from Franklin Chen


Out of some questions during the talk, we came up with an idea for improving ScalaCheck that might be an interesting group project to work on.

There was also more general discussion of using Scala, upcoming and ongoing local Pittsburgh general tech gatherings, Josh filling us in on developments in the Scala world, and ideas for future presentations.


It was a small gathering, but I enjoyed presenting on property-based testing, and we had some really good discussions. Another meeting for the Pittsburgh Scala Meetup has already been scheduled for May.

comments powered by Disqus