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
Saravanan @CreationSaravanan @Creation 

Showing less code coverage while creating package

Hi All,

I am trying to upload a package.But its failed and its shown me the error that overall percentage should be greater than 75%.
So I have run all the test class and i have checked the overall coverage and its says 82% without failure.All the classes and triggers are having more than 0%. But I don't the in which place the issue is.In the package also i have added all the test classes.Could some one help me to figure out the exact issue.

Thanks in advance!!
 
EnreecoEnreeco
Are you using "seealldata" on test classes? Are you using dynamic SOQL queries that depends on namespace?

--
May the Force.com be with you!
Saravanan @CreationSaravanan @Creation
Hi Thanks for your reply, I am not using "Seealldata" in all my test class and  dynamic soql in all my test class.
EnreecoEnreeco
This is sometimes related to missing components on the package or some components that need some sort of "dynamic" configuration while executing test.
You can try to copy your exact code to another ORG and try to run tests again.