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
Joshua Anderson 17Joshua Anderson 17 

code coverage failure on deploying class when org coverage is above 75%

I have been trying to push my deployment that consist of a Apex class and the test class for it (test class applies 95% code coverage). When I attempt to push this I get "Code Coverage Failure - Your code coverage is 0%. You need at least 75% coverage to complete this deployment." I am very confused as for components I am at 21/22 which gives me 95% code coverage. I have removed any kind of duplication errors and my overall code is at 80%. 

Any thoughts on what I might be doing wrong or missing?