As other people (see Code Coverage during sfdx force:mdapi:deploy) I am unable to move code using sfdx force:mdapi:deploy to another org due to Apex Class Coverage.

But as @sfdcfox notes out:

If you specify RunLocalTests, the aggregate code coverage must be 75%

As you can see in the output I am way over this as nearly every class is way over 75%.

enter image description here

  • What does the coverage show in the deployment Status ? And also what does it show when you runall tests in the org? – Mohith Shrivastava Jun 7 '19 at 15:00
  • Don't get your question. The screenshot shows the deployment status. – Robert Sösemann Jun 7 '19 at 15:06
  • Well not from the deployment Status in the org ? Usually deployment sttaus setting in orgs show more info – Mohith Shrivastava Jun 7 '19 at 15:07
  • Can your confirm that the metadata is deployed when there is a coverage problem at all? And where can I find this deployment status in the target org? – Robert Sösemann Jun 7 '19 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.