Skip to content

test: add in-app debug menu with DSN switcher #115

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

armcknight
Copy link
Collaborator

@armcknight armcknight commented Jul 17, 2025

Allow switching DSNs while the app runs via a new floating in-app debug menu. Designed to avoid having to change the DSN in code like in #103

Note: Currently in draft because it causes a crash. Investigating in getsentry/sentry-cocoa#5655.

Copy link

codecov bot commented Jul 17, 2025

Codecov Report

Attention: Patch coverage is 25.29762% with 251 lines in your changes missing coverage. Please review.

Project coverage is 33.333%. Comparing base (b1a505d) to head (184e755).

Files with missing lines Patch % Lines
...lant/InAppDebugMenu/DSNDisplayViewController.swift 0.000% 153 Missing ⚠️
EmpowerPlant/InAppDebugMenu/InAppDebugMenu.swift 51.219% 40 Missing ⚠️
EmpowerPlant/InAppDebugMenu/Toasts.swift 0.000% 33 Missing ⚠️
EmpowerPlant/InAppDebugMenu/DSNStorage.swift 36.666% 19 Missing ⚠️
EmpowerPlant/SentrySDKWrapper.swift 84.848% 4 Missing and 1 partial ⚠️
EmpowerPlant/SceneDelegate.swift 66.666% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##            master      #115       +/-   ##
=============================================
- Coverage   37.866%   33.333%   -4.534%     
=============================================
  Files           10        15        +5     
  Lines         1022      1326      +304     
  Branches       330       452      +122     
=============================================
+ Hits           387       442       +55     
- Misses         628       877      +249     
  Partials         7         7               
Files with missing lines Coverage Δ
EmpowerPlant/AppDelegate.swift 45.454% <100.000%> (-17.641%) ⬇️
EmpowerPlant/SceneDelegate.swift 48.387% <66.666%> (+3.559%) ⬆️
EmpowerPlant/SentrySDKWrapper.swift 84.848% <84.848%> (ø)
EmpowerPlant/InAppDebugMenu/DSNStorage.swift 36.666% <36.666%> (ø)
EmpowerPlant/InAppDebugMenu/Toasts.swift 0.000% <0.000%> (ø)
EmpowerPlant/InAppDebugMenu/InAppDebugMenu.swift 51.219% <51.219%> (ø)
...lant/InAppDebugMenu/DSNDisplayViewController.swift 0.000% <0.000%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1a505d...184e755. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant