231k views
3 votes
Debbie created an Apex class in dev1 and is doing a manual deployment to move it to UAT. She selects No Test Run as test level. However, while reviewing the deployment status page, she can see that Apex tests were run. What could be the reason for this?

(a) The Run all local tests checkbox is enabled in the Pipeline record
(b) The Run all tests checkbox is selected in the UAT credential
(c) The Run all local tests checkbox is enabled in the UAT environment
(d) None of the above

2 Answers

0 votes
The reason Debbie can see that Apex tests were run on the deployment status page, even though she selected "No Test Run" as the test level, could be due to option (a) - The "Run all local tests" checkbox is enabled in the Pipeline record.

This checkbox, if enabled, would cause all local tests to be run during the deployment process, regardless of the test level selected.

So, option (a) - The "Run all local tests" checkbox is enabled in the Pipeline record, could be the reason for the Apex tests being run.

If you have any more questions or need further clarification, feel free to ask!
User Flame
by
8.4k points
2 votes

Final answer:

The reason Apex tests were run during a manual deployment to UAT is because the 'Run all local tests' checkbox is enabled in the UAT environment settings. The correct answer is (c).

Step-by-step explanation:

The correct answer is (c) The Run all local tests checkbox is enabled in the UAT environment. When Debbie is doing a manual deployment to move her Apex class to UAT, if the 'Run all local tests' checkbox is enabled in the UAT environment, Apex tests will be run automatically. This can be checked and modified by the Salesforce administrator in the UAT environment settings. Therefore, Debbie should check the UAT environment settings and disable the checkbox if she doesn't want the Apex tests to run during the deployment.

User Homayoun
by
7.7k points