If someone asks, there are n Apex classes with varying code coverage, some less than 75 & some greater than. And m Triggers having less than 75 coverage.
What will happen while deployment?
So the answer would be -
(For Apex) all lines covered / all lines present = must be greater than 75%
(For Trigger) Example - Just needIf while deploying to have 1% coverageProd, if there 3 classes :
- 80% ( Lines covered 80 / 100)
- 90% (Lined covered 900 / 1000)
- 0% (Lines covered 0 / 150)
Or Triggers lines too haveSo here on calculation it is : 980 / 1250 = 78.4% So this will get deployed to be added in Apex calculations?PROD correct ??
I just want to confirm is thing understanding of mine is correct for tackling such scenarios.