Deployment Options for Changeset

By | September 7, 2016

Salesforce ‘Winter 16’ release has provided a new way to deploy a change set in the production organization. These deployment changes include test options for change sets.

Now, a user can choose which tests to run when validating an inbound change set in production or sandbox at the time of deployment. Test options provide flexibility in how much testing is done to achieve quality and code coverage requirements which will reduce execution time in a deployment. This feature is available in both Lightning Experience and Salesforce Classic.

The following test options are available when deploying or validating an inbound change set :-

All available test options

All available test options

-> Default : It keeps the default behavior for all tests. In sandbox, no tests are executed. In production, all local tests are executed if change set contains Apex classes or triggers.Local tests are all tests, except the ones that originate from managed packages. If package doesn’t contain Apex components, no tests are run.
-> Run Local Tests : In this all tests in organization are run, except the ones that originate from installed managed packages. This test level is the default for production deployments that include Apex classes or triggers.
-> Run All Tests : In this all tests in organization are run, including tests of managed packages.
-> Run Specified Tests : Only the tests that user specify are run.User has to provide the names of test classes in a comma-separated list. Benefit of choosing this option is that it checks code coverage criteria at the Changeset level rather than checking it at the entire org level. The executed tests must cover the classes or triggers contained with in change sets with a minimum of 75% code coverage. This coverage is computed for each class or trigger individually and is different from the overall coverage percentage.

Run specified tests

Run specified tests

This last option has come as a boon to the Salesforce Developers who just work on an independent functionality and don’t want the already existing test classes in Production to hamper their deployment. So, Happy Deployment 🙂

About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at We will be glad to assist you.

Related Posts