Activity Forums Salesforce® Discussions Are Managed Package test class coverage is included in you overall Salesforce org's coverage?

  • Manpreet

    April 26, 2018 at 4:25 pm

    Hi Pranav,

    Test coverage issue is not because of Managed package. for managed package you don't need to write any test classes to get test coverage.


  • Aman

    April 26, 2018 at 7:58 pm

    Hi Pranav,

    Managed package code is not included in the required code coverage calculation for deployment. The 75% requirement is on all Apex code in your org's namespace. Managed code has its own namespace, so it is not included.
    When deploying to production, all tests in your org's namespace will be run. Managed tests will not be run by default.
    If the deployment package explicitly marks runAllTests to true, managed tests will also run. These will need to execute without any failures should the flag be set. Despite this, the 75% requirement for code coverage is still only on unmanaged code.


  • Павло

    November 15, 2020 at 7:50 pm

    When installing or upgrading managed package on a production org, production org tests will not run.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos