Activity Forums Salesforce® Discussions Are Managed Package test class coverage is included in you overall Salesforce 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.

  • [adinserter block='9']
  • 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.

Log In to reply.

Popular Salesforce Blogs

Understanding the role of Salesforce Consulting in Driving Digital Transformation

Blog in

In today’s rapidly evolving business environment, digital transformation has become a critical priority for companies across all industries. Digital transformation integrates digital technology into an…

Popular Salesforce Videos

Skip to toolbar