108k views
0 votes
If you are deploying to a ___ environment, even if the ___ is set to NoTestRun, Salesforce will enforce ___, as Apex tests are required when deploying to production.

A) Development / Test Level / NoTestRun / Validation
B) Testing / Deployment Option / NoTestRun / Code coverage
C) Production / Test Configuration / NoTestRun / Test execution
D) Staging / User Story / NoTestRun / Compliance

User Raugaral
by
8.2k points

1 Answer

5 votes

Final answer:

When deploying code to a Salesforce production environment, test execution is enforced regardless of the Test Configuration setting. The correct answer to this question is 'C' – production deployments require Apex unit tests to pass and me-et co-de coverage standards.

Step-by-step explanation:

If you are deploying to a production environment, even if the Test Configuration is set to NoTestRun, Salesforce will enforce test execution, as Apex tests are required when deploying to production. The correct answer is C) Production / Test Configuration / NoTestRun / Test execution.

In Salesforce, code deployments to a production environment are subject to strict requirements to ensure stability and functionality. This includes achieving a certain percentage of code coverage and successfully passing all Apex unit tests. It is important to understand that even if the deployment option is set to NoTestRun, this only applies to sandbox or development environments; when deploying to production, Salesforce requires that all unit tests be executed successfully.

User Shiv Kumar Baghel
by
7.8k points