About this Workshop
Writing tests is so... boring. And repetitive. And often, in hindsight, rather ad hoc, and therefore ineffective.
We'll learn about property-based testing using ScalaCheck: how it compares to unit testing, when is it better (or worse); learning about different families of invariants and when they are appropriate for your code; how to structure the tests using the main ScalaCheck abstractions, run them, and debug them; and how to test stateful systems.
Don't write tests! Write code that will write lots of tests!
* Basic Scala
* Familiarity with basic unit test techniques
Attendees will learn:
* the differences between property-based testing and traditional unit testing
* how to recognize the most common kinds of properties and encode them
* how to structure, or refactor existing tests using ScalaCheck
* debugging strategies for tests
* testing strategies for stateful systems
is a consultant at Underscore, where he helps companies succeed with Scala. He is an author of "Essential Scala", "Scala with Cats", and "Creative Scala". He believes Strings are pure evil.
BACK TO SCHEDULE