COPADO-DEVELOPER practice question 7 of 15

The Staging Environment record has the Run all local tests checkbox enabled. A user story with Apex components and the promotion test level set to RunSpecifiedTests is being promoted and deployed. What test level is going to be enforced?

Full set: 84 questions
Answer options
A: If the Run all local tests checkbox is enabled in the destination environment, every Copado deployment will always run all local tests. Correct answer
B: The promotion test level on the user story will win over the run all local tests specified in the environment.
C: If the Run all local tests checkbox is enabled in the source environment, every Copado deployment will always run all local tests.
D: Copado will run specified tests
Correct Answer:
A. If the Run all local tests checkbox is enabled in the destination environment, every Copado deployment will always run all local tests.
Explanation

In Copado, the Run All Local Tests checkbox that exists on the destination Pipeline Environment record overrides any test-level setting defined at User Story or promotion time. When the checkbox is ticked, Copado forces Salesforce to execute All Local Tests for every deployment that targets that environment, regardless of whether RunSpecifiedTests, RunLocalTests, or NoTestRun was chosen in the promotion wizard.

Why Incorrect

B – Environment-level “Run All Local Tests” always supersedes test-level selections in the promotion wizard. C – The checkbox on the destination environment controls behaviour; the source environment setting is ignored. D – Specified tests will be ignored because the destination requires All Local Tests.

References

1. Copado Documentation, “Pipeline Environments – Field Reference”, field ‘Run All Local Tests’, ¶2 (Summer ’23)

2. Copado Documentation, “Deployments – Test Level Behaviour”, section “Interaction with Run All Local Tests”, ¶1-3 (Winter ’24)

Scroll to Top