platform-apex-test-run

Run Salesforce Apex tests and diagnose coverage gaps and failures.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-apex-test-run
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-apex-test-run
Source: https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG/tree/main/.agents/skills/platform-apex-test-run
Command: npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-apex-test-run

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill turns Apex test execution from a manual, error-prone CLI task into a guided workflow that runs tests, measures coverage, and explains failures clearly.

Core Features & Use Cases

  • Run a single test class, specific methods, a suite, or all local tests in a Salesforce org.
  • Analyze code coverage, highlight weak spots, and surface uncovered logic for prioritization.
  • Diagnose failures such as assertion errors, null pointers, DML issues, query misses, and governor limit problems.
  • Support a disciplined test-fix loop for iterating on failing tests until they pass.
  • Score tests across coverage, assertions, bulk behavior, data isolation, negative paths, and documentation.
  • Example: use it to validate an Account service test class before deployment and quickly narrow down the cause of a failing bulk test.

Quick Start

Use the platform-apex-test-run skill to run the relevant Apex tests for your target org, review coverage, and investigate any failures.

Frequently Asked Questions about platform-apex-test-run

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Apex tests and analyze code coverage without manually parsing Salesforce CLI output?

You can run Apex tests and analyze code coverage by executing test classes or RunLocalTests suites through the Salesforce CLI, then parsing JSON or human-readable results to surface coverage gaps and failures.

What is the best way to diagnose Salesforce Apex test failures like null pointer or governor limit errors?

Diagnosing Apex test failures involves parsing test execution results to identify specific error types such as assertion errors, null pointers, DML issues, query misses, and governor limit problems, then iterating through a test-fix loop.

Can I run specific Apex test methods or suites in a Salesforce org instead of all local tests?

Yes, Apex test execution supports running a single test class, specific methods, a defined suite, or all local tests in a Salesforce org, allowing targeted validation before production deployment.

How do I identify uncovered logic and weak spots in my Salesforce Apex code coverage?

Identifying uncovered logic requires running Apex tests, parsing coverage reports, and highlighting weak spots to prioritize untested code paths for production validation.

Does this Apex test workflow require the Salesforce CLI to execute and parse results?

Yes, this workflow requires the Salesforce CLI to execute Apex tests and generate JSON or human-readable output for parsing coverage data and diagnosing failures.

Why do my Apex bulk tests fail and how can I iterate on fixing them?

Bulk test failures often stem from governor limits or DML issues. A disciplined test-fix loop helps iterate on failing tests by analyzing errors, applying fixes, and re-running until they pass.