From here we learn of the 75% coverage requirement for any package that is to be published on App Exchange

In addition, before you deploy Apex or package it for the AppExchange, the following must be true.

• Unit tests must cover at least 75% of your Apex code, and all of those tests must complete successfully.

I'm under the impression that my private 2GP packages are not under the same requirement. Am I right?


The documentation says:

Although code coverage isn’t enforced for unlocked packages, it’s a best practice to include Apex tests in your unlocked packages.

  • Revisiting this a few months later: so far it seems to me that requirement for tests is enforced for unlocked packages – bkwdesign Oct 15 at 18:05

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.