~/talk

Property-based testing - let your testing library work for you

Talkat GeeCON 2023 · 2023-04-19..04-21· [testing]
slides:none on file

Property-based testing with jqwik runs about 1000 cases of smart, adversarial input per property (configurable) and automatically shrinks counterexamples to a minimal failing case. Example: a discount function error surfaces on 29 February (leap-year handling) where generated dates cause an exception. Workflow requires writing generators or assumptions for sensible domain values, accepting non-determinism (record seeds to reproduce failures), and weighing extra upfront domain questions and build-time cost against finding subtle edge-case bugs.

AI-written summary · about

  1. 0:00Introduction to property testing
  2. 1:54Example-based vs property-based tests
  3. 4:03Defining properties for testing
  4. 6:14How property tests work in practice
  5. 8:20Why property testing finds hidden bugs
  6. 9:23Challenges of property-based testing
  7. 11:51Coming up with good properties
  8. 12:35When to use property-based tests
  9. 13:58Balancing test strategies
  10. 15:27Q&A on property testing
~/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.