In production, code coverage is showing 83%. In sandbox, it is showing 75%. I have just 1 apex class and associated test class I am trying to deploy to production, but it fails saying only 30% coverage. The apex class I am trying to deploy has 90% coverage, why can't I deploy this class and associated test class to production?
1 Answer
I was missing a trigger in my change set. The trigger actually called the apex class, adding that fixed it.
seeAllData=true
? What does the actual code look like?