~/talk

How to Love Unit Testing

Talkat PowerShell + DevOps Global Summit 2018 · 2018-04-09..04-12· [testing]
slides:none on file

Argues that unit tests using Pester and PoweShell mocking actually speed development by isolating dependencies; shows integration tests that take 9–22 seconds each versus near-instant unit tests, demonstrates mocking with Mock and Assert-VerifiableMock and use of New-MockObject, and explains handling strongly typed params. Builds an oops module that exports command/parameter JSON and asserts metadata to catch breaking changes; demos sometimes fail (missing Compress-Archive, VS Code terminal issues) but the JSON-audit approach works.

AI-written summary · about

  1. 0:00Intro
  2. 2:30Common Questions
  3. 3:37Today's Goals
  4. 4:20Why Love Test Suites?
  5. 8:31What is Unit Testing?
  6. 16:142 Unit Tests, 0 Integration Tests
  7. 16:31Integration Tests. We're still Friends!
  8. 21:00Unit Test "Drawback" #1: Testable Code
  9. 21:16Parameter Types
  10. 23:57"Tryhard" Mode
  11. 33:24Limitations of Parameter Filter Mocks
  12. 34:52Consistency Tests
  13. 35:33Negative Tests
  14. 44:08How Can You Love Unit Tests?
  15. 47:07PowerShell Summit Resources
  16. 48:03THANK YOU!
~/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.