You need to sign in to do that
Don't have an account?
edward scott 10
can i make changes to code when my coverage is below 75 percent
Hi,
I am trying to figure out two things. One if I have a class that is completely commented out to inactivate the class does that class still count against my code coverage. The second question is how do I make changes to code when my coverage is below 75 percent and I can't deploy any code. And I guess a third question can test code be deployed when the coverage is below 75 percent?
Thanks for your help,
Ed
I am trying to figure out two things. One if I have a class that is completely commented out to inactivate the class does that class still count against my code coverage. The second question is how do I make changes to code when my coverage is below 75 percent and I can't deploy any code. And I guess a third question can test code be deployed when the coverage is below 75 percent?
Thanks for your help,
Ed
1.The commented code will not consider in the test class.No need to write for it.
2.If your class is working fine .try to improve coverage in test class only don't change the class.
3.If code coverage is below 75% we can't deploy it.
Hope this helps you!If you need help on test class please post your test class code.
If the above information is informative and helps you please mark it as the best answer.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
It is a trigger to check to see if the current primary contact is attached to an opportunity. I was thinking I could replace this with a trigger but its not allowing me to even deactivate it because the code coverage is at 69 percent. If you could help me write a test for this that I can deploy it would help alot. Thanks.
Please change your code like below :
Hope this helps you!
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
If the above information is informative and helps you please mark it as the best answer.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com