226k views
3 votes
Where can you specify the minimum Apex code coverage?

(a) In the credential and the promotion
(b) In the credential and the user story
(c) In the environment and the deployment
(d) In the user story and the environment

User MVanOrder
by
7.7k points

1 Answer

5 votes

Final answer:

The minimum Apex code coverage requirement is specified in the environment and the deployment settings within the Salesforce platform. It is vital for ensuring code quality and functionality during development and deployment processes.

Step-by-step explanation:

When it comes to Apex code coverage, Salesforce requires at least 75% of your code to be covered by unit tests before you can deploy code to a production environment. The minimum code coverage requirement can be specified in (c) In the environment and the deployment settings. The Salesforce environment determines the code coverage threshold for a deployment, and this can be adjusted or enforced within specific deployment settings. It is important during both the development cycle and the deployment process to ensure that the Apex code meets the minimum code coverage criteria to maintain code quality and functionality.

User PushpikaWan
by
7.9k points