You need to sign in to do that
Don't have an account?
Sudhakar Reddy
Regarding code coverage calculations
Hi All,
Can any one please explain me how to calculate code coverage calculations in Apex
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi All,
Can any one please explain me how to calculate code coverage calculations in Apex
Hi,
average code coverage(for all the apex classes and triggers) should maintain 75%.
The code coverage is callculated like this
(Total number of lines covered in the test class/ Total number of lines in apex class)*100 = some percent%
Hope it helps!!
Thanks for giving reply.
Do we need to calculate manually or through programming?
Can you please post sample example how you have calcuated?So that I will be very clear.
Hi Sudhakar,
There are plenty of blogs, articles on this. Here is one:
http://wiki.developerforce.com/page/An_Introduction_to_Apex_Code_Test_Methods
Go through it and you will have clear idea. If you still need a sample class and test class for it let me know.