This task is used to trigger apex unit tests in an org and also captures the results as an artifact and publishes the result in the tests tab.
Please note Install SFDX with Sfpowerkit task is added to the pipeline before utilizing this task
Task Version and Details
Input Variables - Visual Designer Labels (Yaml variables)
- Alias or username of the target org(target_org)
Provide the alias or username of the target org
- Test Level(testlevel)
Select the testlevel for this task from the possible list of values, The values include the following
- RunSpecifiedTests (Run only specified tests) - RunApexTestSuite (Run an apex test suite) - RunLocalTests (Run Local Tests) - RunAllTestsInOrg (Run All Tests in the org)
- Tests to be executed(specified_tests)
This field will be visible only if the Test Level is RunSpecifiedTests, Provide a coma seperated list of apex test classes that is to be executed
- Apex Test Suite(apextestsuite)
This field will be visible only if the Test Level is RunApexTestSuite, Provide the name of the apex test suite that should be executed with this task.
- Wait Time (wait_time)
The time this task should wait for the result to be generated. The default wait time is 60 minutes.
- Send Anonymous Usage Telemetry (isTelemetryEnabled)
Enable this flag to send anonymous usage telemetry to track usage and bring further improvements to this task
- 6.0.4 Refactored to use revamped folder structure
- 4.0.6 Integration of Error Logs with Github
- 3.2.0 Fixes for Post Trigger Test Task
- 3.0.18 Bugfix for stdout buffer running out
- 3.0.17 Updated with artifact upload and submitting test results in the test tab
- 2.0.1 Updated with telemetry
- 1.1.0 Initial Version