~/talk

Testing Web Services with QuickCheck

Talkat ElixirConf EU 2017 · 2017-05-04..05-05· [testing]
links:none on file
slides:none on file

Property-based testing uses QuickCheck to auto-generate millions of requests from JSON schema generators and also emit a validator, then exercise real endpoints (tries Phoenix locally and targets the XC currency converter). Results include a Unicode reverse failure exposed by shrinking, a forbidden Swedish krona returned despite schema enums, a zero-vs-exclusiveMinimum bug in conversions, and timestamp race failures; at scale QuickCheck tooling finds subtle protocol bugs (20k lines of QuickCheck testing about 1M lines of C revealed several real defects).

AI-written summary · about

  1. 0:00Intro
  2. 0:17Erlang background
  3. 2:13Why is testing hard?
  4. 5:22Specify properties
  5. 11:58Running QuickCheck
  6. 12:52Property Based Testing
  7. 21:31JSON schema generators
  8. 23:24Test a currency web servicel
  9. 24:35Test a currency web service!
  10. 26:00Type correctness
  11. 27:25Found the type error!
  12. 28:33Type specification tested
  13. 33:47Run the same check again
  14. 35:48Web service testing
  15. 36:34Currency at a given time
  16. 38:37Combine JSON and QuickCheck Q
  17. 40:07Conclusion
~/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.