Test Driven Development

The Build stage of the engineering lifecycle done right — implement features and fixes test-first using red → green → refactor, keeping the build green with small commits. Use whenever you are about to write or change behavior: a new function, a bug fix, a controller/reconciler, a data transform, a training/serving config, or an ML behavior change. Tailored to AI infra / ML where people claim "you can't TDD this": shows what testing actually looks like — table-driven unit tests, controller tests with envtest, pipeline/integration tests, eval-as-test for stochastic ML behavior (invariants, contracts, properties, metric thresholds — not exact tokens), golden/snapshot tests, the race detector, determinism via injected seeds/clocks/fakes, and smoke tests for manifests/IaC. Covers the test pyramid, fakes-over-mocks, CI gates, and the checkpoint (tests written, passing, race-clean) before Verify/Review. Scope: AI-infra/ML work — for general application-level TDD loops prefer a generic TDD skill (e.g. the vendored m

sanjeevrg89 c1eb1f9 5 files · 34.9 KB Updated

File contents

sanjeevrg89/arete/tree/main/skills/test-driven-development commit c1eb1f9397

Frequently asked questions

npx skillmds@latest add sanjeevrg89/test-driven-development