2
votes
Need help increasing the code coverage for this trigger
Some background
The golden rule of unit testing is
You only gain coverage for lines of code that are executed by some test method
In tests, we are the ones responsible for setting up the test data. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unit-test × 4708apex × 2946
code-coverage × 818
trigger × 561
failing-tests × 314
class × 207
batch × 196
visualforce × 185
callout × 128
test-setup × 119
soql × 118
deployment × 114
controller × 109
httpcalloutmock × 108
scheduled-apex × 87
community × 56
exception × 55
lightning-web-components × 52
rest-api × 48
webservices × 48
controller-extension × 47
error × 44
future × 44
managed-package × 42
salesforcedx × 39