Property-based Testing for Godly Tests
summary
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
chapters (11)
- 0:00Start
- 0:44Property-Based Testing for Godly Tests
- 1:26Why do we write tests?
- 4:08Fuzz Tests
- 7:49Quickcheck
- 9:30Deliberate randomness
- 14:04Super useful!
- 21:09Generating generators generates success
- 21:56Locks down type definitions
- 23:02Fuzz Testing
- 23:55Can't type check test code and non-standard
related talks
30mProperty Based Testing: From Theory to Practice
51mProperty-Based Testing
45mProperty based tests for the masses
36mProperty Based Testing: From Theory to Practice
47mProperty-Based Testing
13mIntroduction to Property Testing in Javascript
23mProperty based testing is a mindset
26mThe missing piece of testing
