When running a test class in the Salesforce Developer Console, code coverage highlighting may not appear after test execution. In the Developer Console, covered lines are highlighted in blue and uncovered lines are highlighted in red. If these highlights do not appear after running tests, the cause is typically a setting in the Apex Test Execution options that disables detailed coverage tracking.
This issue occurs when the Store Only Aggregate Code Coverage option is enabled in the Apex Test Execution settings. When this option is checked, Salesforce stores only a summary of code coverage data — not the detailed, line-by-line coverage required to display highlighting in the Developer Console. Disabling this option allows Salesforce to store the granular coverage data needed for the highlighting feature.
000386084

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.