Run Apex Tests
sf_run_apex_testsRun Apex test classes and get pass/fail results with error messages. Use after deployment to verify test coverage or for regression testing before release.
Instructions
Runs one or more Apex test classes and returns pass/fail results with any error messages. Uses the Salesforce Tooling API runTestsAsynchronous endpoint and polls for results. Use after deploying Apex code to verify test coverage, or to run regression tests before a release.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testClasses | Yes | List of test class names to run, e.g. ['AccountServiceTest', 'ContactTriggerTest'] | |
| waitMinutes | No | Max minutes to wait for test results |