Skip to content

Add tests for the Android and iOS plugin #1488

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

Closed
marandaneto opened this issue May 26, 2023 · 1 comment · Fixed by #1587
Closed

Add tests for the Android and iOS plugin #1488

marandaneto opened this issue May 26, 2023 · 1 comment · Fixed by #1587

Comments

@marandaneto
Copy link
Contributor

marandaneto commented May 26, 2023

Description

Avoid issues such as #1485

  • Make the code testable and add unit/and or integration tests for the Kotlin and Swift plugins.
  • Add CI step to run the tests
@marandaneto
Copy link
Contributor Author

Examples https://github.com/getsentry/sentry-react-native/blob/main/RNSentryTester/RNSentryTesterTests/RNSentry%2BinitNativeSdk.mm
https://github.com/getsentry/sentry-react-native/pull/3170/files also adding more tests on Android.
Use the HubAdapter whenever needed to avoid the Static class call which is harder to mock/fake.

@denrase denrase moved this from Backlog to In Progress in [DEPRECATED] Mobile SDKs Aug 1, 2023
@buenaflor buenaflor moved this from In Progress to Needs Review in [DEPRECATED] Mobile SDKs Sep 1, 2023
@github-project-automation github-project-automation bot moved this from Needs Review to Done in [DEPRECATED] Mobile SDKs Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants