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
Stefan Senegeac D.Stefan Senegeac D. 

'One or more Apex triggers lack test coverage.' when packaging even though all my triggers are well above 75%

Full error:
Upload Failed
One or more Apex triggers lack test coverage. Add test coverage for the following triggers and upload again: namespace.TriggerName
I get this when I try to upload a beta version of my managed package. 
Org overall code coverage is 78% and all triggers are well above 75%, ran through each manually and checked code coverage in dev console, all of them are covered.
 
What am I missing? 
karthikeyan perumalkarthikeyan perumal
Hello, 

Are you including your test classes as part of the deployment package?

Thanks
karthik
Stefan Senegeac D.Stefan Senegeac D.
Hey karthkeyan perumal, yes, the test classes are included in the package. I already have quite a few released versions of the package and all went well until now. 
karthikeyan perumalkarthikeyan perumal
Hello, 

Could Please post a Screenshot of your package failed error message? 

and let me know that how many Trigger, class, Test class are avaliable in that package?

Thanks
karthik
Stefan Senegeac D.Stefan Senegeac D.
The error with the trigger, sorry for censoringThe actual trigger