Lightlines
By forcedotcom

platform-apex-test-run

forcedotcom

Run Apex tests, diagnose failures, and close coverage gaps.

Apex testing

What it does

Runs Apex tests, analyzes failures and coverage, and manages test-fix loops for Salesforce code.

When to use it

Use for Apex test execution, failures, coverage analysis, and structured test-fix loops.

How to use it

Give it a target org and test scope; it runs and analyzes Apex tests, then returns a structured results report.

What you provide

  • target org alias
  • desired test scope

Uses


Access · 3

This skill

Salesforce org

Execute

Tests in your Salesforce org

Read

Reads test results from Salesforce

TOOL_INPUT

Read

Reads the executed test command

TOOL_OUTPUT

Read

Reads test output from environment

Good to know

  • works out of sight

What you need · 8

Requires jq version 1.6.0 or later.

Requires Python 3.10.0 or later.

Requires sf CLI version 2.0.0 or later.

Requires a target Salesforce org containing test classes, or test classes in the local project.


About this skill

Visibility
Public
Repository
forcedotcom/sf-skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
15