function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Olivia Porter 1Olivia Porter 1 

Test Class Showing 100% Coverage but APEX Class Is Showing Coverage: None

I have 100% Overall Test Coverage for my class. When I go to my actual class, the drop down 'Code Coverage' states :None. When I click the drop down, there are no options. There is no color hilghlighting for the code. Is there a bug Salesforce? Why is this happening? Help! I have edited, saved, reopened, re-ran, refreshed, tried different browsers, cleared all test history, etc...
Head In CloudHead In Cloud

Hi Olivia,

Can you go to setup -> apex classes -> go to your class -> look for "Code Coverage". You should see the code coverage as 1--% there.

If you still don't see the coverage, you can try this:
go to setup- > apex classes -> compile all classes

Please let me know if this helps.

Olivia Porter 1Olivia Porter 1
Thank you for the response. I actually found out what the issue was, Under APEX Test Execution, my "Store Only Aggregated Code Coverage" was checked. This was blocking me from being able to view the code coverage for individual test methods. Unselected it and all works great!