Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

When I clicked "Estimate your organization's code coverage" in Apex Classes from Setup Menu,

enter image description here

I got the following error.

enter image description here

Why this error coming? Is there any other alternate approach to find my organization's overall code coverage? Please suggest.

share|improve this question
add comment

2 Answers 2

Try compiling all your code. I believe you'll get a compilation error. Correct any errors, clear your code coverage, then run all tests. After this, you should be able to calculate your code coverage.

share|improve this answer
    
Thanks @sfdcfox. I did and it is displaying as "Compilation Complete" and Compilation Successful. Then I tried "Estimate your organization's coder coverage" still getting same issue. Where should i see compilation errors? –  Baskaran S Jun 26 at 14:25
1  
Use the "clear code coverage" button, then click "run all tests". This should clear the problem. –  sfdcfox Jun 26 at 14:51
add comment

You should go to developer console and choose Test->Run all, once the tests run you will have coverage displayed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.