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

try to fix locale issues #16

Merged
merged 3 commits into from
Jan 23, 2025
Merged

try to fix locale issues #16

merged 3 commits into from
Jan 23, 2025

Conversation

lukaskollmer
Copy link
Member

@lukaskollmer lukaskollmer commented Jan 23, 2025

try to fix locale issues

♻️ Current situation & Problem

In #14, i added the ability to override the Health app's locale, in an attempt to make it easier to test the Health app in a locale-independent manner. (The idea was that you'd be able to simply always specify some fixed locale, which would then be used regardless of where you're running your tests.)
It seems that i flew too close to the sun with this, since it randomly breaks the Health app (even though the approach used was officially recommended), and makes it somehow display only a small subset of all data and catagories.

This PR fixes this, by entirely removing the locale overide.
(The previous version defaulted it to .current, which I had assumed would be the same as not overriding it, but that doesn't seem to be the case.)

⚙️ Release Notes

  • Remove locale parameter in XCUIApplication.healthApp(locale:); make it a static computed property
  • Fix Health app sometimes not displaying all data/categories
  • Disallow specifying a date when creating ECG samples

📚 Documentation

n/a

✅ Testing

n/a

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.98%. Comparing base (5b6bebe) to head (52b61d0).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
- Coverage   76.17%   75.98%   -0.18%     
==========================================
  Files           5        5              
  Lines         386      383       -3     
==========================================
- Hits          294      291       -3     
  Misses         92       92              
Files with missing lines Coverage Δ
...rces/XCTHealthKit/XCTHealthKitAddSampleInput.swift 80.00% <100.00%> (ø)
Sources/XCTHealthKit/XCTest+HealthKit.swift 75.76% <100.00%> (-2.02%) ⬇️

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 5b6bebe...52b61d0. Read the comment docs.

@lukaskollmer lukaskollmer enabled auto-merge (squash) January 23, 2025 15:47
Copy link
Member

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@lukaskollmer lukaskollmer merged commit e3e319e into main Jan 23, 2025
7 checks passed
@lukaskollmer lukaskollmer deleted the lukas/try-fix-locale branch January 23, 2025 16:14
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.

2 participants