~/talk

Property Based Testing: From Theory to Practice

TalkinFrenchat Devoxx France 2021 · 2021-09-29..10-01· [testing, functional-programming]
slides:none on file

Property-based testing is presented using the JavaScript fast-check library to generate hundreds of inputs per property, run tests (e.g., 100 runs), and automatically shrink failures to minimal counterexamples. A concrete example applies generators to test a diff algorithm: generators produce random diff candidates, the test reconstructs original texts, runs the diff function, and asserts the result contains the target text and has no more lines than the candidate. The approach finds real bugs and edge cases (Jest/Jasmine/React regressions, oversized strings) at the cost of increased execution time but with small, actionable failing cases.

AI-written summary · about

  1. 0:00Introduction
  2. 5:10Speaker background
  3. 9:06What is property based testing
  4. 12:57Example with diffs
  5. 23:19Applications and limits
  6. 26:07Q&A
~/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.