1

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?

4

1 Answer 1

2

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.


Update:

75% code coverage will be enforced for promoting an Unlocked Package beginning with Winter '21: Release Notes

2
  • Revisiting this a few months later: so far it seems to me that requirement for tests is enforced for unlocked packages
    – bkwdesign
    Commented Oct 15, 2019 at 18:05
  • @bkwdesign can you elaborate on your experience?
    – NSjonas
    Commented May 2, 2020 at 1:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .