+ Start a Discussion
tonantetonante 

Question Regarding Code Coverage and Inactive Triggers

HI, This may seem like an elementary question but I have not seen this explained anywhere in Sales Force docs however I may have overlooked this topic:

Q) Do inactive triggers still get calculated in an organization's overall coverage ?
I was thinkng that since their meta-xml status has changed to "Inactive" , the Apex Test Execution is somehow notified to omit the inactive trigger as part of  the overall coverage thus possibly increasing the organization's overalll code coverage percentage.

Brief Explanation/Reason for my question:
We have to maintain and scrub our list of older triggers and classes which may no longer be  needed  (not sure yet) due to changes in process or due to software upgrades like Non-Profit Starter Pack(which changes the Contact-Account Relationship regarding Contact's Account ID lookup by making this lookup field obsolete since accounts are now regarded as affiliations ).

Thanks much.
Best Answer chosen by tonante
Nirmal ChristopherNirmal Christopher
No In active trigger dont cover any part of the code coverage.

 

All Answers

Nirmal ChristopherNirmal Christopher
No In active trigger dont cover any part of the code coverage.

 
This was selected as the best answer
tonantetonante
Thanks Nimral.