Fall in LOVE with Unit Testing
summary
A hands-on case study builds a TypeScript model of a privacy door knob, writes clear requirement sentences, and implements Jasmine tests run in the browser via reveal.js. The talk shows using the Arrange Act Assert pattern to turn verbose scenarios into maintainable one-line specs with shared beforeEach setup, explains mocks versus unit scope, reports that tests give precise failure messages, and argues Copilot-generated tests are weaker than human-framed requirements. The approach improves design, speeds feedback, and the example suite runs and surfaces concrete failures.
AI-written summary · about
chapters (17)
- 0:00Introduction to unit testing
- 1:54Why unit testing feels hard
- 3:23Unit testing in developer education
- 5:09What is a unit test?
- 6:36Four keys to unit testing success
- 8:23Breaking down requirements
- 10:08Quality of test code
- 13:29Focusing on what matters
- 14:12AAA pattern in tests
- 16:01Live code demo begins
- 17:26Choosing a testing framework
- 18:58Implementing test cases
- 21:54Benefits of structured tests
- 22:36DRY principles in tests
- 26:10AI-generated tests limitations
- 27:39Rewards of good testing
- 28:00Closing and contact info
related talks
16mA unit test walks into a bar
41mTesting that the code does what the code does
39mTesting, Testing, 1, 2, NaN
24mWriting Good Tests for Vue Applications
23mIt's a Testing Trap
45mWriting Tests That Don't Suck: TDD in JavaScript
49mAngular Testing In TDD - Writing a Feature Guided By a Responsible Maniac
30mIt's a (testing) trap! - Common end-to-end pitfalls and how to solve them
