
Running Apex Tests
This is your disciplined test runner for Salesforce Apex. It handles the full cycle: scoping what to test, running sf apex run test with the right flags, parsing failures, analyzing coverage gaps, and looping back through fixes until you hit the threshold. The workflow is smart about starting narrow on single classes before widening to RunLocalTests, and it knows when to delegate actual code fixes to the generating-apex skill. The reference files give you real patterns for bulk tests with 251+ records, HttpCalloutMock templates, and DML mocking strategies. Honestly, the 120-point scoring rubric and structured output format make this feel more like a QA process than an ad-hoc test run, which is exactly what you want when coverage actually matters.
- skills.sh installs
- 3K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill running-apex-tests --agent claude-codeInstalls into .claude/skills of the current project.
Files
This is your disciplined test runner for Salesforce Apex. It handles the full cycle: scoping what to test, running sf apex run test with the right flags, parsing failures, analyzing coverage gaps, and looping back through fixes until you hit the threshold. The workflow is smart about starting narrow on single classes before widening to RunLocalTests, and it knows when to delegate actual code fixes to the generating-apex skill. The reference files give you real patterns for bulk tests with 251+ records, HttpCalloutMock templates, and DML mocking strategies. Honestly, the 120-point scoring rubric and structured output format make this feel more like a QA process than an ad-hoc test run, which is exactly what you want when coverage actually matters.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- Testing & QA, Documentation, AI & Agent Building, Debugging
- First seen
- Jun 3, 2026
More from forcedotcom/sf-skills
All 158- Handling Sf Data2.9K
- Building Sf Integrations2.9K
- Generating Mermaid Diagrams2.8K
- Configuring Connected Apps2.8K
- Generating Visual Diagrams2.8K
- Getting Datacloud Schema2.6K
- Developing Datacloud Code Extension2.5K
- Retrieving Datacloud2.5K
- Connecting Datacloud2.5K
- Activating Datacloud2.5K
- Harmonizing Datacloud2.5K
- Orchestrating Datacloud2.5K
- Preparing Datacloud2.5K
- Segmenting Datacloud2.5K
- Deploying Omnistudio Datapacks2.4K
- Building Omnistudio Integration Procedure2.4K
- Building Omnistudio Callable Apex2.4K
- Building Omnistudio Omniscript2.4K
- Building Omnistudio Datamapper2.4K
- Building Omnistudio Flexcard2.4K
- Analyzing Omnistudio Dependencies2.4K
- Modeling Omnistudio Epc Catalog2.4K
- Running Code Analyzer2.3K
- Applying Cms Brand1.9K