Skip to content

fix(tests): isolate feature user defaults - #1103

Merged
Kyle-Ye merged 1 commit into
mainfrom
optimize/feature_test
Sep 26, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
optimize/feature_test

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Use a dedicated UserDefaults suite and the Feature1 key to isolate the feature test from other tests that read standard defaults.
  • Reset the test value and cache before and after execution while preserving the existing cache and override assertions.

@github-actions github-actions Bot added area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Sep 26, 2026
@tuist

tuist Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 552459fe3

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 41.6s 552459fe3

@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.26%. Comparing base (a75b531) to head (4f286dc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1103      +/-   ##
==========================================
+ Coverage   28.88%   33.26%   +4.37%     
==========================================
  Files         752      805      +53     
  Lines       55545    63992    +8447     
==========================================
+ Hits        16043    21285    +5242     
- Misses      39502    42707    +3205     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@Kyle-Ye
Kyle-Ye force-pushed the optimize/feature_test branch from d5a838b to 4f286dc Compare September 26, 2026 11:22
@Kyle-Ye
Kyle-Ye merged commit b13f093 into main Sep 26, 2026
5 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/feature_test branch September 26, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: tests Test coverage, test infrastructure, snapshots, or test-only changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant