+ Start a Discussion

Test coverage




I have written a class in sandbox and a test class for thye same. It has test coverage of 91%. When I move it to prodcution, Its coveareg gets reduced and shows only 68%. It is happening beacuase of salesforce shows comment lines and curly breckets as uncovered code which should not be the case.


Can anybody suggest why is this happening and what is the solution Or is it a bug?




Andy BoettcherAndy Boettcher

When that happens - I do the "Compile All Classes" and then "Run All Tests" - that usually clears it up.