function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SKriLLSKriLL 

Test coverage for managed code

I am trying to deploy changes to a production instance... and Im getting the error that says Average test coverage across all Apex Classes and Triggers is 72%, at least 75% test coverage is required.  I have done almost as much as I can, and it seems like the classes that are bringing the average down are managed code, whos test coverage probably worked a couple years ago but is now outdated and broken.  Is there anyway I can update managed code show its test coverage works again?

 

Or am I barking up the wrong tree and I should just keep trying to find 3 more percent in the code I can edit? 

Alex.AcostaAlex.Acosta

From what I've been told in the past, Managed Packages' test code is counted seperately from the rest. This should not be counted agaist you. What I would suggest is running all of your test classes and seeing what you're missing out on. This also explains on why managed packages can have test code coverage that throws errors but you're still able to push custom code into your org.

steve456steve456

No worries

 

Compile all classes and then calculate organizatiion code coverage

 

Thn Log out and login

 

 

Now do your deployment it should work

SKriLLSKriLL

Can you expand on this?

 

Compile all classes and then calculate organizatiion code coverage

Alex.AcostaAlex.Acosta

Setup > App Setup > Develop > Apex Classes > Run All Tests