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
hgolovhgolov 

Production Setup Doesn't show same coverage as in ide

Hi All, and thanks for taking the time to look at my question.

I recently ran into an error when trying to deploy - not enough coverage across the org. So I've been going through my classes one by one and increasing code coverage. However, I have a problem. Often the coverage that displays in my org's control panel doesn't reflect the values I see when testing in the sandbox.

I found this question:

http://boards.developerforce.com/t5/Apex-Code-Development/Different-code-coverage-in-Sandbox-and-Production/td-p/71962

and decided to run the tests on the prod org in the eclipse ide. I got the same values as in the sandbox, but my org still shows less!

Does anyone have any ideas?

Best Answer chosen by Admin (Salesforce Developers) 
uptime_andrewuptime_andrew

I had some differences in coverage between my org and eclipse;  I ended up doing this to flush out some old test results, and it helped:

 

Setup > Develop > Apext Test Execution

 

Click "View Test History", then Clear Test Results