Find your content:

Search form

You are here

Developer Console not showing covered lines by test method

 
Share

I want to know the lines of my apex class which are not covered by the test classes. I know its only possible in developer console now. But seems to be some issue there again.

I ran all tests in developer console. And I opened the controller in the console that I want the coverage for. But it shows no coverage. When I checked in the browser though for this class, it shows 80%. But here it shows nothing, doesn't show which line are convered and not.

The dropdown in the image below should ideally show me the list of all test classes and All classes. but it itsn't. What is the problem? Please let me know. Or any other alternatives please?

Thanks

developer console


Attribution to: sfdcFanBoy

Possible Suggestion/Solution #1

It appears that in latest Winter 2016 upgrade a bug was introduced where code coverage line highlights are missing from the Salesforce Developer Console

You can get them back by selecting the 'Test > Always Run Asynchronously' checkbox and re-running your test.

salesforce-code-coverage-highlight-missing-fix


Attribution to: Daniel Sokolowski

Possible Suggestion/Solution #2

This issue is because of the Latest release from salesforce side. CS16 sandboxes all have the same problem. I tried CS15 sandbox, and it works absolutely fine.


Attribution to: sfdcFanBoy
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34751

My Block Status

My Block Content