Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add E2E tests for crash loop scenarios #1181

Conversation

fractalwrench
Copy link
Contributor

Goal

Adds E2E scenarios where Bugsnag allows an application to recover from a crash loop by checking the value of Bugsnag.getLastRunInfo(). Along with #1180 this adds the required E2E test coverage for the project.

Changeset

  • Added scenario code which triggers a fatal JVM + NDK crash loop by crashing as soon as the scenario is run
  • If Bugsnag.getLastRunInfo().crashedDuringLaunch is true, the application enables a 'safe-mode' which avoids the crashy path
  • Confirmed that the values of LastRunInfo are populated as expected.

Note: the NDK LastRunInfo functionality hasn't been implemented yet so the scenario fails. This will be addressed in PLAT-5978 which will uncomment the E2E test.

@fractalwrench fractalwrench merged commit 47fc52a into integration/road-1175-identify-crashes-on-launch Mar 11, 2021
@fractalwrench fractalwrench deleted the PLAT-5979/crash-loop-tests branch March 11, 2021 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants