Community Test-Driven Development Best Practices Comprehensive guide to Test-Driven Development practices, designed for AI agents and LLMs. Contains 42 rules across 8 categories, prioritized by impact to guide test writing, refactoring, and code generation. When to Apply Reference these guidelines when: - Writing new tests using TDD workflow - Implementing the red-green-refactor cycle - Designing test structure and organization - Creating test data and fixtures - Reviewing or refactoring existing test suites TDD Workflow 1. RED : Write a failing test that defines desired behavior 2. GREEN : W…