I'm trying to upload a beta version of a managed package I'm developing, but it fails saying the test coverage is only 74%.

But when I estimate the test coverage I've 91% both from 'Apex Classes' and from Developer Console.

Why do I see a difference here?

1 Answer 1


I figured the reason was I had not included some of the test classes in the package. So considering what's in the package, my test coverage was less than the dev org test coverage.

Including those test classes in the package solved the issue.

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.