A single conversation with a wise man is better than ten years of study.
~ Chinese Proverb ~

Property-based testing with ScalaCheck

Grzegorz Balcerek

Download slides

ScalaCheck is a library for testing software by specifying its properties and automatically verifying them on sets of randomly generated test data. It is inspired by the QuickCheck library which was originally written in Haskell. ScalaCheck is written in the Scala language and runs on the JVM platform.

During the presentation I will introduce ScalaCheck, including:

  • defining code properties
  • checking these properties on randomly generated test cases
  • test parameters
  • grouping properties
  • generating customized test data
  • shrinking (minimizing) test cases

More talks