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
AbhisreeAbhisree 

How to calculate the code coverage rate?

Does the Code Coverage Rate be for the individual programme or total apex program in the org (include the existing programme)? 

Such as it will summary the code coverage rate for all apex program when I deploy the program to production?

Thanks in Advance
Amit Chaudhary 8Amit Chaudhary 8
And remember, the code coverage is the percent of your total unmanaged code covered by all the tests.  It is not the "average percent" of all the tests.  This means that a large class, with low coverage, cannot be balanced by several small classes with 100% coverage

Please check below post for more info
1) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_code_coverage_intro.htm
2) https://help.salesforce.com/articleView?id=000199478&type=1

Let us know if this will help you