The Testing Workflow

The recommended Claude Code testing workflow, combining all tools:

  1. Write implementation code
  2. Write unit tests — informed by property-based testing for data transformations
  3. Run testspytest / swift test / npm test / dotnet test
  4. Validate test qualitymutmut run / npx stryker run / muter / dotnet stryker
  5. Kill surviving mutants — additional tests MUST be written targeting gaps
  6. Security scansemgrep scan + bandit / pip-audit / npm audit MUST be run
  7. E2E verification — Playwright for web UIs, platform test runners for native

This creates a closed loop: AI generates tests, deterministic tools validate those tests actually catch bugs, AI writes more tests to close gaps.

version
1.0.0
platforms
python, swift, typescript, web
tags
testing, the-testing-workflow
author
Mike Fullerton
modified
2026-03-27

Change History

Version Date Author Summary
1.0.0 2026-03-27 Mike Fullerton Initial creation