Skip to content

runApexTests

runApexTests(options): Promise<void>

Defined in: packages/simply-cicd-core/src/sfApex.ts:178

Runs Apex tests in the specified target Salesforce organization. First checks that any Apex tests exist before initiating the run. Test results are written to ./test-results/apex in JUnit and JSON formats. If tests fail, a detailed failure report is printed and this throws.

RunApexTestsOptions

Promise<void>