How to go into the error block of app initialized and activated while doing coverage

Hi Friends,
I’m trying to maintain coverage in that process i m unable to go into the error block of app initialized and activated.So can anyone help me in this.



Hi all,
Can anyone help me to continue my work.


Hi @Tipuranjali,

Those lifecycle events are essential parts of the app. If these events result in an error, most likely the app will not work as expected. So, not handling them is fine. The validator warning can be neglected only for this case.

Handling them and adding console log statements are good to help troubleshoot in-case the app seems to be failing. The code coverage is expected only to cover 80% of the code remembering these grey areas which cannot be tested. So, the remaining part of the code can be covered to leave out these areas.


This topic was automatically closed after 14 days. New replies are no longer allowed.