sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Make full use of Unity Test Framework

Open bitsandfoxes opened this issue 2 years ago • 1 comments
trafficstars

The unit testing setup is a bit brittle right now. Consider:

  • [ ] Tests (especially integration tests that are sending events to Sentry) should add breadcrumbs with their name to help with debugging: https://github.com/getsentry/sentry-unity/pull/1208
  • [ ] ~~Refactor DisabledSelfInitializationTests into SentryTestBase and make use of OneTimeSetUp to disable the self-initialization. This would then need to be explicitly enabled in those tests that deal with self-initialization.~~
  • [ ] Disable self-initialization through the options configuration: https://github.com/getsentry/sentry-unity/pull/1207
  • [ ] According to the docs, the UTF allows for running tests in a build. This would be an excellent place to run integration tests for i.e. IL2CPP

bitsandfoxes avatar Feb 13 '23 11:02 bitsandfoxes