~/talk

Property-Based Testing: Unveiling the Truth on Test Reduction

Talkat NDC Porto 2023 · 2023-10-16..10-20· [testing]
slides:none on file

Property-based testing uses generators to describe inputs and assertions to describe properties, running hundreds of examples (Hypothesis defaults ~200–300) and shrinking failing cases to a minimal counterexample. Example: a custom sort implementation fails because generated arrays reveal an ordering bug; custom strategies can generate complex types (demo uses a dog class). Claims: it raises coverage and finds edge-case bugs, can cut time spent writing individual cases and sometimes reduce test code, but it increases the number of test executions. Use Hypothesis or FSCheck and apply selectively via risk-based testing.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:38Lessons from my son
  3. 4:00Common testing challenges
  4. 5:56Code vs test coverage
  5. 9:17Techniques for test design
  6. 11:53Limits of decision tables
  7. 17:36Property-based testing
  8. 21:25Shrinking and failing tests
  9. 24:03Customizing input strategies
  10. 27:27Test reduction efforts
  11. 30:12Risk-based testing and wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.