We are getting strange behavior with the Developer Console when running our unit tests. We complete development with the force.com IDE and use the dev console for unit testing (for performance & the code highlighting).
Here are the steps I am taking:
- After saving a class to the server I recompile all classes.
- I then run all tests in the developer console.
- After the tests have completed I am finding that the lines counted on some of the classes are incorrect, if I open the test class from the coverage pane in the console it has around 150 lines, but in the test coverage panel it shows 30/34 lines being tested.
Interestingly the highlighting is failing to highlight lines that haven't been tested and oddly they are not counting to the line total for that class.
A work colleague is encountering the same issue in his org - although the line counts he gets in his org (in dev console) are slightly different. We work on the same code base and the classes that we noticed this on are exactly the same. He performs the same 3 steps.
Anyone know how we can get an accurate picture of our org wide code coverage?