running-apex-tests

Official

Run Apex tests, analyze coverage, auto-fix.

Authorforcedotcom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you execute Salesforce Apex unit tests, diagnose failing tests with actionable root-cause guidance, and improve code coverage through an agentic test-fix loop.

Core Features & Use Cases

  • Apex test execution & coverage analysis: Run single classes or broader suites with coverage metrics, then interpret which lines/classes are under-covered.
  • Failure analysis for faster debugging: Parse failures into error type, affected test method/class, stack trace context, and recommended next actions.
  • Agentic test-fix loop: Iteratively propose fixes (delegating code changes to sf-apex) and rerun until tests pass or the iteration limit is reached.
  • Best-practice scoring & validation: Apply a structured 120-point rubric across coverage, assertions, bulk testing, isolation, negative tests, and documentation quality.

Quick Start

Tell the agent: Run Apex tests in my org dev, show the coverage report, and fix any failing tests automatically.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: running-apex-tests
Download link: https://github.com/forcedotcom/sf-skills/archive/main.zip#running-apex-tests

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.