+ Start a Discussion
Mosammat NargisMosammat Nargis 

BatchApexErrorEvent trigger Test Class

I created a BatchApexErrorEvent Trigger and it is working as expected when the Batch is throwing CPU limit Exception. I am not able to Cover the Trigger with Test Class code. I tried using Test.getEventBus().deliver(); but the Trigger is not covered. 

Please help if anyone has written a Test Class to cover the trigger on BatchApexErrorEvent object.