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

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:

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) 

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