~/talk

Fall in LOVE with Unit Testing

Talkat UtahJS Conf 2023 · on Friday, 2023-09-15· [testing, developer-experience]
name:Joe Skeen
links:none on file
slides:none on file

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

  1. 0:00Introduction to unit testing
  2. 1:54Why unit testing feels hard
  3. 3:23Unit testing in developer education
  4. 5:09What is a unit test?
  5. 6:36Four keys to unit testing success
  6. 8:23Breaking down requirements
  7. 10:08Quality of test code
  8. 13:29Focusing on what matters
  9. 14:12AAA pattern in tests
  10. 16:01Live code demo begins
  11. 17:26Choosing a testing framework
  12. 18:58Implementing test cases
  13. 21:54Benefits of structured tests
  14. 22:36DRY principles in tests
  15. 26:10AI-generated tests limitations
  16. 27:39Rewards of good testing
  17. 28:00Closing and contact info
~/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.