~/talk

An introduction to property based testing

Talkat FrenchKit 2019 · 2019-10-07..10-08· [testing]
slides:none on file

Starts from actual properties instead of canned examples, writes properties like "reverse twice equals original", uses property-based testing with Swift check to generate inputs and apply a shrinking mechanism to produce minimal counterexamples, builds an email generator from RFC rules and wires it to a regex validator, and reports that the generator finds a real regex bug after only two runs — concrete claim, concrete tools, a specific failing case, and a verification that the technique produces actionable, shrunken examples.

AI-written summary · about

  1. 0:00Intro
  2. 0:53Classic unit tests
  3. 3:25Let's look at an example
  4. 6:06SwiftCheck
  5. 7:22Implementing a first property
  6. 8:24A more complex property
  7. 10:35Time to catch a bug
  8. 11:25Create a generator for emails
  9. 12:33Write the property
  10. 15:15Mixing both approaches
  11. 17:00How do I use this in my app?
  12. 20:01When is this approach relevant?
  13. 20:57Is there a lighter approach?
~/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.