~/talk

Pesterize Your Code!!

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

Step‑by‑step Pester basics with concrete examples: loading modules, mocking Get‑Service and Set‑Service, writing unit tests that run in module scope, and running integration tests against a test Octopus server via Invoke‑RestMethod. Shows using Invoke‑Pester with tags, exporting xUnit, and checking code coverage (mocked calls show 0% coverage while pure functions hit 100%). Demonstrates verifiable mocks, a create/remove environment workflow that actually runs and sometimes needs a small wait, and fixes a failing test live so the examples work end‑to‑end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:56Agenda
  3. 4:34Why Test
  4. 6:32Test
  5. 7:07Simpler Code
  6. 9:22What You Know
  7. 11:49Pester Basics
  8. 14:44Get Bits
  9. 16:19Code Coverage
  10. 20:39Testing
  11. 22:37TestDriven Development
  12. 24:19Unit Tests
  13. 30:04Integration Test
~/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.