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
amilawamilaw 

Developer Console Test Coverage Doesn't Work

Hi All,

 

I have no way to find what line are covered and what lines are not in a set of apex classes as they are not shown in the developer console test coverage class list.

Even after running all test classes.

Arunkumar.RArunkumar.R

Hi,

 

It working well.. 

 

When you go to developer console you may have Code Coverage as NONE Status(left side corner in your developer console window)…

 

Click All Test from the Code Coverage.. you will surely get details of your covered codes..

 

Make sure your test class is created properly...!

 

Hope this may helps you...!


If you found this answer helpful to you... Please accept this as a Solution and  give kudos by clicking on the star icon.

 

Thanks and Regards,

Arunkumar.R | Salesforce Certified Developer

amilawamilaw

To click that you have to select a class from the list. but my class is not even in the list

Arunkumar.RArunkumar.R

Is your test class passed?

 

I think your test class may non contain testMethod...!

 

static testMethod void validateHelloWorld()

{

}

 

I faced this issue earlier...!

 can u check...!

 

In your test class did you created instance for your class name??

 

Like Classdemo cdm=new Classdemo();

 

 

amilawamilaw