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
TejTej 

how much test coverage needed for Trigger????

Do we need to write a test class for trigger at all, becoz it says more than 1% is fine.

 

does it effect the org wide coverage??

 

can any one give me some insight into triggers and test coverage???

 

Thanks,

natty dreadnatty dread

I believe you'll need at least 75% covearge in order to deploy into production. 

Static DevStatic Dev

The Test coverage should be 75%  when you push into production.

 

If it is less than that it will surely impact org wide coverage.

EIE50EIE50

You can push it to production as long as there is 1% coverage assuming your org has very good code coverage as a whole. And off course if you push the code with 1% coverage, it will affect the total test coverage % in your org and the % of coverage affected depends on the number of lines of actual code that is not covered by test classes in your org.

 

Thanks.