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 tests for the Android and iOS plugin #1488

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.

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