You need to sign in to do that
Don't have an account?
Code Coverage Failure: Your code coverage is 0%.
Hi. I found this apex class online (it's super simple). It triggered successfully in my sandbox. When deploying to my production org, I tried validating and received an error:
Code Coverage Failure: Your code coverage is 0%.
This is the Apex Class:
public class DeleteUnacceptedQuotes
{
@InvocableMethod
public static void QuoteDelete(List<Id> OpportunityIds)
{
List<Quote> Quotes =[select id from quote
where Opportunity.id in :OpportunityIds
and Status != 'Accepted'];
delete Quotes;
}
}
Thank you for your help!
We need the test class also for prod deployment.
Please use the below test class:
Add if there is any required fields are missing while inserting the test records below.
Thanks,
Maharajan.C
All Answers
We need the test class also for prod deployment.
Please use the below test class:
Add if there is any required fields are missing while inserting the test records below.
Thanks,
Maharajan.C