Loading...
Loading...
Runs DevOps Center test suites on a pipeline stage (Pre-Promote, Post-Promote, or Review event) end to end: triggers async execution via the Connect API after an explicit confirmation gate, then polls by runId at provider-specific intervals until it completes, fails, or times out, and hands results to failure analysis. Also retriggers a quality gate after fixes, but only once coverage meets the threshold. Use this skill when a user wants to run, kick off, or launch test suites on a stage, re-run a quality gate, or watch an in-progress run to completion. TRIGGER when: the user wants to run/launch suites on a stage, execute tests before or after promotion, re-run a quality gate after fixing failures, unblock a blocked promotion after adding tests, or poll/watch an in-progress run. DO NOT TRIGGER when: running sf apex run test directly (use platform-apex-test-run), or configuring a NEW gate or threshold (use dx-devops-test-pipeline-configure).
npx skill4agent add forcedotcom/sf-skills dx-devops-test-suite-runrunIdAPI version: All DevOps testing system calls target Salesforce API v67.0 (minimum required).
sf data querysf api request restreferences/prerequisite-checks.mddoce-org-aliaspipelineIdstageId| Input | How to obtain |
|---|---|
| Prerequisite 4 (pipeline selection) |
| Prerequisite 5 (pipeline stage confirmation) |
| Confirm with user: |
| Confirmed suite IDs from selection or recommendation |
| Prerequisite 1 |
"I'm about to run tests with the following configuration:
- Pipeline:
<pipelineName>- Stage:
<stageName>- Event:
<event>- Suite(s):
<suiteName(s)>- Org:
<doce-org-alias>Shall I proceed?"
sf api request rest \
"/services/data/v67.0/connect/devopstesting/pipeline/<pipelineId>/stage/execute" \
--method POST \
--body '{
"stageId": "<stageId>",
"event": "<event>",
"testSuiteIds": ["<suiteId1>", "<suiteId2>"]
}' \
--target-org <doce-org-alias>| Field | Type | Description |
|---|---|---|
| string | The ID of the pipeline stage to execute tests on |
| string | |
| string[] | One or more test suite IDs to execute |
runId"Tests are running in. I'll update you when results are ready."<doce-org-alias>
runIdreferences/error-handling.mdenvironmentId: nullclassIdList is null or empty — no tests to executerunIdrunIdreferences/polling-configuration.mdrunIdDevopsTestSuiteExecutionDevopsTestExecutionDevopsTestSuiteExecutionrunIdStatus, Coverage, SuccessCount, FailureCount, QualityGateStatusInProgressPassedFailedCoverageSuccessCountFailureCountQualityGateStatusFailureCount > 0DevopsTestExecutiondx-devops-test-failures-analyzeErrorResultDetailsMessagerunIdreferences/retrigger-mode.mdCoverageDevopsQualityGateRulerunIddx-devops-test-failures-analyzedx-devops-test-suite-assignments-configuredx-devops-test-pipeline-configure