When running a deployment with Test Level “Run Specified Tests“ and selecting a set of unit tests the deployment fails and shows a message like the screenshot attached.
This is happening to other co-workers as well. The weird part is that sometimes it works, but most of the time it does not work.
Salesforce client version
@salesforce/cli/2.39.6 win32-x64 node-v20.12.2
The workaround: Deploy the same set of metadata but instead run all unit tests. (Run Local Tests). But this doesn’t work for me because it’s a huge project and the deployment takes a lot of time.
Yep, it’s a bug left over from the recent migration from
sfdx
commands tosf
commands where IC is still using the old command’s-r <testNames>
argument instead of the new command’s--tests <testNames>
argument. I’ve already committed a fix for tomorrow’s build. Thanks for getting the diagnostic info to me!