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

  • Are Managed Package test class coverage is included in you overall Salesforce org's coverage?

  • PRANAV

    Member
    April 26, 2018 at 4:20 pm

    Are Managed Package test class coverage is included in you overall org's coverage?

  • Manpreet

    Member
    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.

    Thanks.

  • Aman

    Member
    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.

    Thanks

  • Павло Щур

    Member
    November 15, 2020 at 7:50 pm

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

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos