0

I'm pretty new to apex. My test classes are passing. But the class is showing zero % coverage (none of the lines in the actual class were hit (highlighted blue)... which does not make sense.)

Any ideas why this might be happening? This just started happening very recently. This happens with both synchronous and asynchronous testing, whether I run one test or multiple tests at a time.

Also some of my classes are not showing up on the test coverage panel on the right hand side of developer console (on the 'tests' tab). Thanks so much for all your help!

6
  • issue may be this salesforce.stackexchange.com/questions/104204/…
    – Ratan Paul
    Feb 22, 2016 at 3:47
  • @Ratan Not likely since it also happens during async testing...
    – Adrian Larson
    Feb 22, 2016 at 3:49
  • 3
    Try a run from the Apex Test Execution page in setup instead of from the Developer Console Feb 22, 2016 at 4:16
  • 1
    If all else fails, try going to Setup>Apex Classes, click on Clear Code Coverage, then Compile all classes. After that do a run all test of your test classes.
    – sfdx
    Feb 22, 2016 at 5:03
  • Will try the above and report back... Thanks for the help so far! Feb 22, 2016 at 13:30

0

You must log in to answer this question.