~/talk

Property-based Testing for Godly Tests

Talkat ReactiveConf 2017 · on Thursday, 2017-10-26· [testing, typescript]
links:none on file
slides:none on file

Argues that property-based testing uncovers real bugs at Unbounce by using test.check (JS port of QuickCheck) to generate hundreds of inputs, using shrinking to produce minimal failing cases, and by auto-deriving generators from Flow types with a flow-to-gen babel plugin. Reports many real fixes after integration, but warns it makes suites slow (~20s for heavy cases), is a bit hacky in JS, and the transform is abandoned after a migration to TypeScript.

AI-written summary · about

  1. 0:00Start
  2. 0:44Property-Based Testing for Godly Tests
  3. 1:26Why do we write tests?
  4. 4:08Fuzz Tests
  5. 7:49Quickcheck
  6. 9:30Deliberate randomness
  7. 14:04Super useful!
  8. 21:09Generating generators generates success
  9. 21:56Locks down type definitions
  10. 23:02Fuzz Testing
  11. 23:55Can't type check test code and non-standard
~/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.