Determining deployment options for given scenarios
When deploying changes between Lightning Platform environments, there are various deployment options and scenarios that you should consider when using change sets.
In particular, when migrating changes to a production instance, there are additional requirements for programmatic Apex code that mean Apex test classes need to be written and executed to test that the lines of code function as expected.
There is a minimum acceptable percentage of tested code lines before a change set is permitted to be deployed to a production instance. These tests are required to prevent code from causing errors that would have an impact on the production org. During the running of all tests in the org, the code coverage must be at least 75%.
The deployment options are determined by the type of metadata changes within the change sets; the following should be considered:
- Apex code test classes: When Apex code is included in a change set...