Skip to main content

I’m encountering an issue in Salesforce where some test classes are appearing in the code coverage report with 0% coverage, while others are not, despite both being annotated with @isTest. I want to understand why this is happening and how to control whether a test class appears in the coverage report with 0% coverage. Additionally, I’m running all tests through Setup > Apex Test Execution > Run All. 

Why Does My Test Class Appear in Salesforce Code Coverage Report with 0% Coverage?

 

 

 

#Salesforce Developer

3 Antworten
  1. 28. Mai 2025, 13:55
    It means those lines of code were not hit by whatever tests have been run.
0/9000