You need to sign in to do that
Don't have an account?

Code coverage figures lost from all but last test method in class - BUG!
I have experienced what has to be a bug in code coverage storage in salesforce. I had 95% coverage of a class but when checking it, realised I could get complete coverage by adding another test method, which I did. Now salesforce will only report the coverage from the last method run, although it states that all 5 methods have been passed! What do I do now? I won't be able to deploy my code, which has to be deployed today to production. It is reporting 59% because that it what the additional method (the only one it is now counting) covers.
When I look in the developer console at the test results, clicking on each method aside from the newest one shows blank in the code coverage pane. I'm trying to run the tests again from the IDE instead of the Developer Console, but it is hanging as Not Responding. The sandbox is a full sandbox on cs12. Has anyone else encountered this?
When I look in the developer console at the test results, clicking on each method aside from the newest one shows blank in the code coverage pane. I'm trying to run the tests again from the IDE instead of the Developer Console, but it is hanging as Not Responding. The sandbox is a full sandbox on cs12. Has anyone else encountered this?
Whew.
Cyrus Talladen
CRM Engineer
www.levementum.com
The test methods all executed, passed and worked correctly. It is a bug in the reporting of the code coverage. In the developer console, the pane was completely blank - not 5%, not anything. The debug logs were exactly as expected. Code has deployed fine - it is only an issue in the sandbox.
Erica
I have encountered the same exact bug when using Mavensmate. At that time what helped me was to restart, update mm, or reset the metadata.
Cyrus Talladen
CRM Engineer
www.levementum.com