Now you can view the overall and individual entity code coverage in your organization. The results of the code coverage can be downloaded in Excel format
For Same you Can install the below App Exchange Product
Code Coverage Report
https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD
How to configure the App.
Please check below link for same.
https://appexchange.salesforce.com/servlet/servlet.FileDownload?file=00P3000000Qq5GkEAJ
How To Configure This APP
You can check the Setup step in Installation and
Configuration Tab
Step 1:- Setup Remote Site Setting
Add a value for Remote
site setting (In same org in which package is installed)
Goto Setup >
Administration Setup > Security Controls > Remote Site Settings Add value
to your Salesforce instance, for example
'https://na34.salesforce.com’
Step 2 Setup Base URL
Please set your Base URL.
Go to Setup > Develop
> Custom Settings > Code Coverage Configuration > Manage > New. Set
the name to 'baseUrl' and the value to your Salesforce instance, for example
'https://ap2.salesforce.com'
à
Open Custom Setting and Click on Code Coverage Configuration
à
Then click on Manage
à
Then click on Manage and then New Button and then Enter the below detail
Name as :- baseUrl
Value as :- https://na34.salesforce.com
(Please enter your org base url.)
I got error:.
ReplyDeletePlease check Custom Setting and Remote Site Setting baseUrl Value -> Malformed JSON: Expected '{' at the beginning of object
I have configured the app according the instruction with my own org base url. I also run all test
It look like you have not configured the App properly. Can you please send me screen shot of your Remote Setting and Custom Setting value.
ReplyDeleteAmit Chaudhary
You can send me screen shot on my email id :- amit.salesforce21@gmail.com
DeleteHi Amith, This is really good application. But if you differentiate manged package classes & local classes, that is really helpfull. And I have one more question. Is this this application generate the report for classes/triggers greater than 2000 count?
ReplyDeleteThanks for Your Feedback. I will try to differentiate manged package classes & local classes
DeleteHi Amit, is this project open source? I have to build something similar and it would be great to have a base where to start. Thanks.
ReplyDeleteHi,
DeleteThis is app exchange product. You dnt need to develop the you can download the same in you org from app exchange as it is a free of cost.
https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD
Thanks
Amit Chaudhary
Hey Amit,
ReplyDeleteDespite of running the tests, I do not see any code coverage. Any clue?
Thanks,
Jinesh
Please share your mail class and test class
DeleteYou need my complete test class?
Deleteif i configured domain name then what would be my instance
ReplyDeletePLease check your top URL. IF you can post your URL here after login then i can help you. It should be like below
Deletehttps://DomainName.naXX.force.com
Hello Amit,
ReplyDeleteWe get this error message "Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 254.859KB" when tried to generate the report. We do not have access to edit the VF page. Could you suggest how to overcome this issue. Thank you for your help!
This is a free app and currently we are providing support for limited number of apex classes and Trigger code coverage.
DeleteThis is the know issue and i am working on same. This issue is coming in large org only. Please feel free to connect with us on amit.salesforce21@gmail.com. I will try my best to resolve your issue.
I have fixed the issue in below Beta version
DeleteFor Prod:-
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t280000005h3v
For Sandbox
https://test.salesforce.com/packaging/installPackage.apexp?p0=04t280000005h3v
Soon i will upload the same on app-exchange. Please check and confirm if your issue is resolved