ADR-006: All functionality must be tested with pytest¶
Category: development Provenance: guided-ai
Decision¶
Every feature, handler, and reconciliation logic must have pytest test coverage. No untested code in production.
Rationale¶
Quality assurance: Tests catch regressions and validate behavior. pytest ecosystem: Rich plugin ecosystem (pytest-asyncio, pytest-kubernetes, coverage). AI-friendly: Test-driven development works well with LLM assistance. Refactoring confidence: Comprehensive tests enable safe code changes.
Agent Instructions¶
When implementing features, write tests first or alongside implementation. Unit tests required for all reconcilers and utility functions. Integration tests required for all CRD operations. Refuse to merge code without tests. Run 'make test-pre-commit' before committing.