Platform Apex Test Run
Apex test execution, coverage analysis, and test-fix loops with 120-point scoring.
- CCM score
- 67 of 100
- skills.sh installs
- 7.5K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Use when the user needs to run Apex tests, check code coverage, fix failing tests, or work with *Test.cls / *_Test.cls files
- TRIGGER when: user runs Apex tests, checks code coverage, fixes failing tests, or touches *Test.cls / *_Test.cls files
- DO NOT TRIGGER when: writing Apex production code (use platform-apex-generate), Agentforce agent testing (use agentforce-test), or Jest/LWC tests (use experience-lwc-generate)
Install
$ npx -y skills add forcedotcom/sf-skills --skill platform-apex-test-run -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
platform-apex-test-run: Salesforce Test Execution & Coverage Analysis
Use this skill when the user needs Apex test execution and failure analysis: running tests, checking coverage, interpreting failures, improving coverage, and managing a disciplined test-fix loop for Salesforce code.
When This Skill Owns the Task
Use platform-apex-test-run when the work involves:
sf apex run testworkflows- Apex unit-test failures
- code coverage analysis
- identifying uncovered lines and missing test scenarios
- structured test-fix loops for Apex code
Delegate elsewhere when the user is:
- writing or refactoring production Apex →
platform-apex-generateskill - testing Agentforce agents →
agentforce-testskill - testing LWC with Jest → experience-lwc-generate
Required Context to Gather First
Ask for or infer:
- target org alias
- desired test scope: single class, specific methods, suite, or local tests
- coverage threshold expectation
- whether the user wants diagnosis only or a test-fix loop
- whether related test data factories already exist
Recommended Workflow
Details
- Repository
- github.com/forcedotcom/sf-skills
- Category
- Testing & QA
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 78- Platform Apex Logs Debug7.4K
- Platform Soql Query7.4K
- Platform Metadata Deploy7.3K
- Platform Metadata Retrieve7.2K
- Platform Custom Field Generate7.1K
- Platform Docs Get7K
- Platform Permission Set Generate7K
- Dx Code Analyzer Run6.9K
- Platform Custom Object Generate6.9K
- Automation Flow Generate6.8K
- Experience Lwc Generate6.7K
- Platform Validation Rule Generate6.5K
- Platform Flexipage Generate6.5K
- Dx Org Manage6.4K
- Platform Data Manage6.4K
- Platform Sharing Rules Generate6.4K
- Platform Metadata Api Context Get6.3K
- Design Systems Slds Apply6.3K
- Design Systems Slds Validate6.1K
- Platform Custom Tab Generate6.1K
- Agentforce Generate6.1K
- Dx Code Analyzer Configure6K
- Platform Custom Application Generate6K
- Platform List View Generate6K
Similar to Platform Apex Test Run
More Testing & QAplatform-apex-test-generateforcedotcom/sf-skills7.7K installsUse this skill when creating new Apex test classes, improving test coverage, debugging and fixing failing Apex tests, running test execution and coverage analys
sf-testingjaganpro/sf-skills1.5K installsTest execution, coverage analysis, and test-fix loops for Apex code, scored across six categories.
test-masterjeffallan/claude-skills6K installsComprehensive testing specialist that writes tests, plans strategies, and reports defects across functional, performance, and security testing.
mutation-testingaj-geddes/useful-ai-prompts481 installsEvaluate test suite quality by injecting code mutations and checking that tests catch them.