Expand Apex Testing with the ApexSettings Metadata Type

Use the new ApexSettings metadata type to augment Apex testing with aggregate total tracking, serial execution, and prevention of auto-number gaps. You can also use ApexSettings to suppress debug log details in unhandled exception emails.

Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.

How: You can use the ApexSettings metadata type in many ways.
  • To enable tracking of aggregate, instead of detailed, totals for Apex test coverage data, use the new enableAggregateCodeCoverageOnly field.
  • To enable serial execution of Apex tests, use the new enableDisableParallelApexTesting field.
  • To suppress Apex debug log details in unhandled exception emails, use the new enableDoNotEmailDebugLog field.
  • To prevent Apex test executions from incrementing auto-number fields for non-test records and creating gaps, use the new enableGaplessTestAutoNum field.
Note

Note

We removed the ApexApprovalLockUnlock value from the
 preferences field on the deprecated OrgPreferenceSettings metadata type. Instead, use the new enableApexApprovalLockUnlock field on the ApexSettings
 metadata type.