-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
ref(profiling): move test helpers to separate code unit; prefix with _sentry #3873
ref(profiling): move test helpers to separate code unit; prefix with _sentry #3873
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3873 +/- ##
=============================================
+ Coverage 90.639% 90.653% +0.013%
=============================================
Files 579 580 +1
Lines 45298 45289 -9
Branches 16121 16126 +5
=============================================
- Hits 41058 41056 -2
+ Misses 4170 4055 -115
- Partials 70 178 +108
... and 31 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I don't like this approach of adding so many test compiler declaratives; it makes it harder to read, and we will be testing code that will not be the same as what we ship.
That being said, it works, so I won't oppose it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I don't like this approach of adding so many test compiler declaratives; it makes it harder to read, and we will be testing code that will not be the same as what we ship.
I agree with you @brustolin 👍 , but this PR only moves the existing stuff around. We should discuss this somewhere else.
I understand where you're coming from. In this case, I think it's fine because it's not code that is pertinent to how the SDK works in production on our customers' enduser devices. It's only code that is pertinent to the tests:
This is I think much less risky than the debate over whether to enable NSAssert in test and prod or not. |
Following on #3872, for #3555, #skip-changelog
Move some functions only used for testing purposes to a separate code unit
SentryProfilerTestHelpers