Agent Action Unit Tests

Apex test patterns for @InvocableMethod agent actions: per-reason-code branch coverage, bulk safety, callout mocking, deterministic assertions. NOT for testing whether the agent routes to the right topic or answers well — use agentforce/agent-testing-and-evaluation. NOT for designing the error envelope the tests assert on — use agentforce/agent-action-error-handling.

PranavNagrecha ce480c5 7 files · 16.5 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/agentforce/agent-action-unit-tests commit ce480c535f

Frequently asked questions

npx skillmds add pranavnagrecha/agent-action-unit-tests