sf-tdd-workflow

Community

TDD workflow for Salesforce Apex, LWC, Flows

Authorjiten-singh-shahi
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sf-tdd-workflow
Download link: https://github.com/jiten-singh-shahi/salesforce-claude-code/archive/main.zip#sf-tdd-workflow

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.