Skip to content
Bug Barometer

Sfdx force:apex:test:run RunLocalTests doesn't work correctly for the unlocked package apex test class(es)

Salesforce says this works as designed.

Summary

Sfdx force:apex:test:run -l RunLocalTests doesn't work correctly for the unlocked package apex test class(es).
The unmanaged apex test class(es) should be fired with RunLocalTests, but the unlocked package's apex test class should not be run.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Working as Expected with 1 report

    Nov 30, 2026

Also open in Compute Services