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

is there any code coverage required for a trigger ?

What should be the code coverage for a Trigger? 

Devender MDevender M
Hi Pavan,

Code cover is required for class and trigger. It should be 75%.
But we should try to cover the code as much as possible.

for trigger also its mandatory to cover 75% ..plz explain me on this


Hi Pavan,

You must have atleast 75% test code coverage to deploy the code from sandbox to production.

If you are building any managed package application then also you must have atleast 75% test coverage to create a package. Otherwise your package creation will fail.

Hope this helps :)