generate_dx_tests
Converts Agentforce scan violations into YAML test specs for Salesforce Testing Center, running a fresh scan if no SARIF file is provided.
Instructions
Convert Agentforce scan violations into Agentforce DX test specifications (YAML format) compatible with sf agent test run and the Salesforce Testing Center. Delegates to the core SquireX CLI generate-tests command. If no SARIF file is provided, runs a fresh scan first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | Comma-separated rule IDs to generate tests for (e.g., "AGENTFORCE-1.1,AGENTFORCE-9.1") | |
| sarifPath | No | Path to a SARIF file from a previous scan. If omitted, a fresh scan is run. | |
| suiteName | No | Name for the test suite. Defaults to "squirex-security-validation". | |
| outputPath | No | Path to write the generated YAML file. Defaults to agentforce-tests.yaml. |