~/talk

Testing: Property-based testing - let your testing library work(...)

Talkat 4Developers 2020 · 2020-09-14..09-18· [testing, functional-programming]
slides:none on file

Shows property-based testing in Java using jqwik, demonstrating generators that create 1000 samples per property, custom arbitraries for LocalDate built from long ranges, and combinators to produce domain objects. Finds a leap-day bug and uses shrinking to minimal counterexample to simplify failures, then reruns with the saved seed reproducibility to confirm the fix. Covers assumptions and frequency weighting for realistic data and where properties fail to replace example tests.

AI-written summary · about

  1. 0:00Introduction to property-based testing
  2. 5:44What is property-based testing
  3. 8:59Property-based testing libraries
  4. 11:28First property-based test example
  5. 15:18Why property-based testing shines
  6. 17:08Generators in property-based testing
  7. 23:30Custom generators for domain types
  8. 24:37Assumptions and frequencies in generators
  9. 27:11Challenges of property-based testing
  10. 30:43Patterns for writing properties
  11. 33:15Alternate wording and invariants
  12. 35:21Symmetry and non-determinism
  13. 37:50Documenting with example-based tests
  14. 38:53Strategies to start with property-based testing
  15. 40:38Summary and further resources
~/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.