+ 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!!
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.
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.