Skip to main content

Hi, 

can someone please help me to understand why my deployment fails? I have one class I went to deploy to my sandbox. I wrote a test class that covers 77% of the corresponding class (I can see it in the dev console). But when I deploy using the SFDX force:source:deploy command, deployment fails with the following error message: Your code coverage is 0%. You need at least 75% coverage to complete this deployment.

  • FetchRecordsForSalesOrderTracker
sfdx force:source:deploy -p force-app/main/default/classes/FetchRecordsForSalesOrderTracker.cls -l RunSpecifiedTests -r force-app/main/default/classes/FetchRecordsForSalesOrderTrackerTest.cls -u gusschiggins@acme.com -c 

 

#SFDX CLI

4 Antworten
0/9000