Thursday, January 21, 2016

How to get code coverage report class by class in Salesforce

Some times we will come across situation where we need to increase code coverage of 1% or 2% to get the 75% .To improve code coverage first we need to know the coverage report class by class but unfortunately in salesforce we don't have any option to get the report in single shot.To do this we have to navigate through the each and every class and we have to note down the coverage which is very headache thing and as well as time consuming process.

No worries,for every problem their would be a solution but only thing is that we need to explore for that one.To get the code coverage report class by class we can use ASIDE.IO. I would say Great thanks for the ASIDE.IO team because this is the number one tool to get the code coverage report class by class in salesforce with simple click only.Now I will explain how to use feature .

1. Login to ASIDE.IO as shown as below image by selecting type of the login

2.Once your login it will show your name Please verify whether you logged into correct instance or not and Click on < symbol to get more options

3.On click on < Symbol you will be getting more option as shown in below image.

4.Click on Test button to get more Unit Testing related options on left side as shown in below image

5.Click on Coverage Report button to get Click Here to Generate the Report option on Right Side

6. Click on the Generate the report button to download the coverage report in the form of .csv


7. Sample downloaded report looks likes as below image

8.Downloaded report contains below components we need to more concentrate on last 2 colums

  • Class Name,Coverage (%)
  • Total Lines
  • Lines Uncovered
  • Lines Covered
  • Remaining Coverage (%)
  • % Of Organization Total
  • Organization Potential Gain (%)

Hope this helps for everyone...Enjoy!!!

For more update please join this site or just like my Facebook page I Love Coding..You?

No comments:

Post a Comment