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
Kim AltKim Alt 

Do Inactive Triggers count against Code Coverage?

We have 6 inactive Triggers in our org.  When I run a Code Coverage test in the Developer Console, they show up with 0% coverage.  Are they counting against our 75% minimum?  If so, would the best answer be to comment out the lines (assuming we don't want to delete the code entirely)?
MaxPowerForceMaxPowerForce
Yes, they count toward code coverage.  Commenting them out would stop this so if this is causing any issues, that would be a good option. 
Vinit_KumarVinit_Kumar
Yes,they will be counted against your code coverage.

I would suggest to get the Test classes created for them so that it covers the Triggers rather than commenting them as in future you might have to make them Active.

Hope this helps !!