+ Start a Discussion
harish reddy 39harish reddy 39 

How to find which test class is for which class

In my organization we have so many classes ,I am not able to map approiate test class with actual class as their naming convention is different of that of class .
is there any way to find out plz help me.
Thanks in advance for ur help.
SFDC pvSFDC pv
Hi @Harish,

Go to Developer Console > File > Open > 'Select class', top left corner says which tests are covering the specific class. Click on the Code coverage drop down, there you can see the test class for that particular class. Please mark this as Best answer if this helps .

 
Raj VakatiRaj Vakati
Step 1 : Go to apex test execution and run all the test classes 

Step 2 : Go to developer console and open the apex class and you can able to see all the test class as shown below 

User-added image
Alexis RAFESTHAINAlexis RAFESTHAIN
Hello, is there a way to export it for a bunch of class ?

e.g : I give a list of class : class1,class2,class3 and an api respond which test class is covering all these class..
 
Raj VakatiRaj Vakati
  1. From Setup, enter Apex Test Execution in the Quick Find box, then select Apex Test Execution.
  2. Click Select Tests....
  3.  
  4. To opt out of collecting code coverage information during test runs, select Skip Code Coverage.
  5. Click Run.
https://help.salesforce.com/articleView?id=code_test_execution.htm&type=5