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
4 Antworten
I think it is causing because of one of trigger has 0% code coverage in your org. The runspecifiedtests causing to check code coverage for exisitng triggers. Check link below. I hope this helps