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

Trying to deploy a trigger and test class, but error on deployment states "Average test coverage across all Apex Classes and Triggers is 66%, at least 75% test coverage is required"

Hi all,

Receiving the test coverage error, yet the test class covers 100% of the trigger, and across the org when Estimating the code coverage it's giving me 80%.  Can someone inform me of where the gap is, not sure exactly why it's stating that it's not covered when all tests shows otherwise?

Is your test code generating it's own objects for the testing?  Or are you using seeAllData for your tests?  What version of the API are your classes and test classes using?