You need to sign in to do that
Don't have an account?
Big Ears
Spring '13 - code coverage changes?
It looks like the Code Coverage pages for my apex code now includes blank lines and commented out rows as "Un-covered" and highlights them in red.
Is anybody else noticing this? Is it a bug?
With thanks,
Andy
Try clearing Apex Test Results via: Setup->Develop->Apex Test Execution->View Test History: Clear Test Results.
This usually helps when SFDC begins reporting test coverage which does not make sense.
All Answers
It does this sporadically; even Winter 13 was doing this (I posted about it a while back). Ultimately, I had to remove/alter some comments both in the test class and the actual class for it to clear up. I think it might be related to a bug with the compiler.
Try clearing Apex Test Results via: Setup->Develop->Apex Test Execution->View Test History: Clear Test Results.
This usually helps when SFDC begins reporting test coverage which does not make sense.
We see that problem too. Clearing out the test history seemed to fix it, but has anyone logged it as an issue with Salesforce so they're aware of it? It's a bit annoying.
Clearing the history did not help. Updating class API and re-running tests also did not help. Some of my classes have a 0% (with link to weird code coverage page) and some have absolutely nothing (and no link). Very buggy!
We have the same issue. Even old code base that deployed successfully fails now after spring'13 for code coverage issue.