Skip to content

Agent tests

Agent tests

Runs all Agentforce agent tests (AiEvaluationDefinition metadata) of the org and reports pass / fail results for each test case.

The command fails if any agent test case does not pass.

Sfdx-hardis command: sf hardis:org:test:agents

Key: AGENT_TESTS

This monitoring command requires the @salesforce/plugin-agent Salesforce CLI plugin (sf plugins install @salesforce/plugin-agent).