What problem does it solve?
Provides a practical, Salesforce-focused test-driven development workflow that reduces regressions and deployment failures by guiding developers through the RED-GREEN-REFACTOR cycle for Apex classes, triggers, LWC Jest tests, async jobs, batch jobs, and Flows.
Core Features & Use Cases
- RED-GREEN-REFACTOR Guidance: Step-by-step instructions to write compiling failing tests, implement the minimum code to pass, and refactor safely.
- Platform Patterns: Trigger-first handler stubs, Queueable and Batch TDD patterns, Flow test triggers, and LWC Jest examples for front-end components.
- CI and Coverage Integration: Advice for running tests in CI, interpreting test-run artifacts, and enforcing coverage thresholds and guardrails during pull requests.
- Use Cases: Start a new Apex service with tests-first TDD, add tests and safety nets when refactoring legacy code, and validate async processing and bulk behavior before deployment.
Quick Start
Ask the assistant to run a RED-GREEN-REFACTOR session for a new Apex AccountService class by producing failing tests first, a minimal implementation to make them pass, and a refactor checklist.