What problem does it solve?
Provides fast, structured execution and analysis of Apex tests so developers can quickly find root causes of test failures, measure code coverage, and reduce the manual work of debugging Salesforce test regressions.
Core Features & Use Cases
- Test Execution: Run Apex tests via the Salesforce CLI with options for single classes, specific methods, or full local test suites and capture JSON, JUnit, or human-readable output.
- Coverage & Failure Analysis: Parse test and coverage output to highlight low-coverage classes, uncovered lines, and failing assertions with root-cause guidance.
- Agentic Test-Fix Loop: Suggest or apply automated fixes, coordinate with sf-apex for code changes, and re-run targeted tests until passing; includes a 120-point scoring guide for test quality.
- Use Case: Debug a failing AccountServiceTest, identify a NullPointerException root cause, generate a minimal fix, and re-run the failing test to validate the repair.
Quick Start
Run the sf-testing skill to execute a specific test class in a target org alias and return a pass/fail summary, coverage percent, root-cause analysis, and suggested next steps.