Testing Made Simple
summary
Practical rules for Clojure(script) testing: focus on narrow units, clear English descriptions, and isolation instead of biting the whole onion. Demonstrates a concrete union-initialization function tested by a merge-state stub with argument capture and call-count assertions so tests stay cheap and specific. Uses Untangled Spec to validate mocked contracts and shows when to use generative testing with a slow trusted implementation (sine example) to check numeric accuracy and edge cases.
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:30Testing Made Simple
- 3:38People Problems
- 7:13Onion Analogy
- 10:29Sine
- 12:08Behaviors
- 13:17Trusted Implementation
- 15:50Specificity
- 17:27React Based Example
- 20:43Stubbing
- 21:58Orchestration
- 22:44Protection
- 23:16Problems
- 23:51Potential
- 25:44Example
- 28:34Programming languages
- 29:30Does it work
- 30:29Testing and design
related talks
32mGenerative Testing: Properties, State and Beyond
37mBreaking the bank with test contract
48mContracts & Clojure: The Best-Yet Compromise of Types and Tests
38mLiving with Spec
43mspec loves data structures
26mTesting the Tricky Stuff
24mSpeculative Development
41mTesting that the code does what the code does
