Changing Organization Settings (Code Coverage)

Overview

Explore the Settings tab of an Organization to manage its Code Coverage and Vlocity component inclusion. This article provides information about Code Coverage and detailed instructions on adjusting these settings.

DevOps Code Coverage

Salesforce mandates at least 75% code coverage for Apex classes, Flows, and triggers before production deployment. The Code Coverage setting in Cloud DevOps lets you specify a custom code coverage range of 75%-95% for deployments to this org. When Code Coverage is enabled, deployments to this org are blocked unless your specified threshold is met.

circle-info

Salesforce generates code coverage calculations during deployment.

This feature allows you to enforce strict code coverage, ensuring that only safe code is deployed to selected orgs. The instructions below show you how to enable this setting.

circle-check

Use Case

Change Settings

1

Organization Settings Tab

  1. Click Organizations from the left sidebar menu.

  2. Click the Organization you want to change a setting for.

  3. Click the Settings tab.

2

Code Coverage

To enable Code Coverage for this Organization, follow these instructions.

  1. Click the Enable toggle in the Code coverage section.

  2. Click the Percentage dropdown menu.

  3. Select your desired code coverage percentage.

  4. Click Save to apply the changes.

3

Vlocity

To include Vlocity components from your Salesforce org in DevOps metadata retrievals, enable this setting. Note: The Vlocity package must be installed in your Salesforce org.

  1. Click the Enable toggle in the Vlocity section.

  2. Click Save to apply the changes.

Last updated

Was this helpful?