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
prashant1985prashant1985 

Code Coverage Issue

Hi,

 

Code coverage issue.

 

when i run all test  from setup-->develop-->apex classes  its show 76% code coverage.

but when i go to make new package.

I add all apex class and  pages, tabs,buttons in package.

and when i go for upload this package its show error you can not upload this package code coverage is 12%

 

so please suggest why this happen its show 76% code coverage when i run all test from apex class.

 

so give solution.

 

Thanks

Prashant

 

Best Answer chosen by Admin (Salesforce Developers) 
Sridhar BonagiriSridhar Bonagiri

Hi Prashant,

 

Did you added all the test classes to the package?

 

Regards,

Sridhar Bonagiri

All Answers

Sridhar BonagiriSridhar Bonagiri

Hi Prashant,

 

Did you added all the test classes to the package?

 

Regards,

Sridhar Bonagiri

This was selected as the best answer
prashant1985prashant1985

Ya I have added all test cases class in package.

 

 

prashant1985prashant1985

Thanks for solution. i have added all testcases in package.

prashant1985prashant1985

I have make the package. i am getting Installtion URL now.

but i am not getting how to deploy in sandbox.

 

so please suggest me.

 

Thanks

Prashant

Sridhar BonagiriSridhar Bonagiri

Hi Prashant,

 

To install in Sandbox you need to the change the url in this way.

 

Normal Installation URL: http://login.salesforce.com/.......

 

chnage this URL to work in sandbox like this.

 

http://test.salesforce.com/.....

 

 

Regards,

Sridhar Bonagiri

prashant1985prashant1985

Thanks for reply.

 

i have do that i change http://login.salesforce.com/....... to http://test.salesforce.com/.......

 

installtion process started but after some times its give me error.

 

"Your requested installtion is failed please try again "

Sridhar BonagiriSridhar Bonagiri

Hi,

 

Is it displaying any error messages other than this?

 

Regards,

Sridhar Bonagiri

prashant1985prashant1985

 

 

Below is error msg.

 

"Your requested installtion is failed. please try again.".

none of the data or setup information in your salesforce.com organisation should have been affected by this error.

 

If this error persists. contact  salesforce.com support through your normal channels and referance number 5464300003-516(811533829).

Sridhar BonagiriSridhar Bonagiri

Hi,

 

I think you need to contact SFDC support to resolve this issue.

 

Regards,

Sridhar Bonagiri