Skip to content
0:00 / 0:00

#property-basedtesting#quickcheck#concurrency

John Hughes - Don't Write Tests

Curry On!

6.3K subscribers • 24 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by John Hughes, co-creator of Haskell and QuickCheck
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

18K views9 years ago2 recommendations

Tools and practiceProgramming languagesTestingFunctional programmingConcurrency and parallelism

John Hughes explains how to generate tests using property-based testing with QuickCheck to find complex bugs, including concurrency issues.

Abstract Writing test cases is laborious, often a little neglected, and ultimately rather unsatisfying, since errors slip through even the most comprehensive test suites. Can we generate tests instead? In this talk I’ll show test case generation using QuickCheck, drawing on experience of applying it at scale at Quviq. I’ll try to explain why property-based testing can be so effective, and how to use it most effectively. Bio I am a professor at the Computing Science Department at Chalmers University of Technology, and a member of the Functional Programming Group. I am also CEO at Quviq AB, which offers a commercial version of QuickCheck, where I spend half of my time.

Why it's here

2 people recommend this

What people say. Recommended for its explanation of property-based testing and how it can find complex concurrency bugs.

Moments people linked to

u/sreguerain r/programming • Recommends

On “Solving Concurrency Bugs Using Schedules and Imagination”

Property based testing and model checking are used for these kinds of problems. See for example My favourite bug! in the "Don't Write Tests" talk by John Hughes, or the Jepsen's Analysis techniques at the bottom.
3View on Reddit

u/StoneCypherin r/node • Recommends

On “What are you PRO testing tips?”

Stochastic testing. A million times, stochastic testing.