#SalesforceSpring26 [Tip 13] - Deploy Apex Faster with RunRelevantTests (Beta)
Salesforce Spring ’26 introduces a useful new deployment option called RunRelevantTests (Beta), designed to significantly reduce Apex deployment times.
Traditionally, when you deploy Apex to production, Salesforce runs all local tests using RunLocalTests. In orgs with large test suites, even a small code change can take a long time to deploy.
With RunRelevantTests, Salesforce automatically analyzes your deployment payload and runs only the Apex tests that are relevant to the classes and triggers you changed. This makes deployments faster, more targeted, and more efficient—without compromising code coverage or quality.
You can also take finer control by annotating test classes:
@IsTest(critical=true)to always run a test class, regardless of what changed.
Use
@IsTest(testFor='ApexClass:ClassName, ApexTrigger:TriggerName')to run a test only when specific components are modified.
This feature works across API deployments, REST deployments, and the Salesforce CLI.
Product Area: Apex
References & Useful URLs
For Related Spring ’26 Release Note Article – Click Here