You need to sign in to do that
Don't have an account?

Code Coverage not showing in production
I've created a custom object with related custom fields. I've also created an Apex Trigger to roll up data into said custom object. We tested it in production and we have 95% coverage. When I go to validate through the inbound change set, it says I have 0% coverage. How can this be? I've checked in both the developer console test and in classes (an apex class was created as well). What am I doing wrong? I've looked at the other forums and can't find an answer. Thanks in advance
https://help.salesforce.com/articleView?id=000250168&language=en_US&type=1
All Answers
Try to run specific test class ..
And then it says: CustomObjectNameTriggerTesttestUpdateSystem.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Quote Status: bad value for restricted picklist field: Initiated: [Quote_Status__c]
Stack Trace: Class.CustomObjectNameTriggerTest.testUpdate: line 15, column 1
https://help.salesforce.com/articleView?id=000250168&language=en_US&type=1