~/talk

Beyond Pester 103: Applying a Testing Mindset

Talkat PowerShell + DevOps Global Summit 2023 · 2023-04-24..04-27· [testing]
slides:none on file

Shows concrete refactors: a monolithic AD cleanup script splits into functions (Get-OldAccounts, Exclude, Disable, Delete, Log) and Pester tests for 45‑day disable and six‑month delete, with Pester mocking and a fix for the implicit Get-Date dependency. Recommends single responsibility principle, practicing TDD (write one failing test, make it pass, refactor), and tools beyond Pester: Gherkin, InSpec, OPA/Rego, HashiCorp Sentinel, Gatling. Cites Dora numbers (elite ~10% manual testing vs 30–50% for low performers) and saves developer hours by earlier feedback.

AI-written summary · about

  1. 0:00Testing mindset intro
  2. 3:33What is testing mindset
  3. 7:00Personal testing journey
  4. 12:16Why test PowerShell
  5. 17:57Testable PowerShell code
  6. 22:10Test-driven PowerShell
  7. 29:35Categorizing PowerShell tests
  8. 32:43Operational verification tests
  9. 36:55Additional testing tools
  10. 39:43Two testing mindset questions
  11. 40:48Q&A
~/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.