Skip to content

feat(tests): add interaction snapshots and align test workflows - #1108

Merged
Kyle-Ye merged 7 commits into
mainfrom
feature/ux_screenshot
Sep 27, 2026
Merged

Kyle-Ye merged 7 commits into
mainfrom
feature/ux_screenshot

Conversation

@Kyle-Ye

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

Copy link
Copy Markdown
Member

Summary

  • Add SnapshotTesting coverage for tap gestures and observed state changes, using SwiftUI reference images to verify OpenSwiftUI rendering.
  • Rename UX tests to interaction tests, with a separate target, matching schemes, and a shared interaction tag.
  • Align UI and interaction CI configuration options, test filters, failure checks, and artifacts. Record interaction references only when an update is requested.
  • Move example tests, reference images, and shared helpers into Example/Tests, and remove the legacy Xcode project.

Both interaction suites and all nine snapshot comparisons pass on macOS 26.6.2 and iOS Simulator 18.5 with the Compute backend. The macOS test host uses a fixed 400×400 content area for consistent screenshots.

@github-actions github-actions Bot added area: example Example apps, previews, sample projects, screenshots, or demo assets. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: ci GitHub Actions, test infrastructure, runners, checks, or automation. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Sep 27, 2026
@Kyle-Ye

Kyle-Ye commented Sep 27, 2026

Copy link
Copy Markdown
Member Author

/interactiontest update

@tuist

tuist Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 80a80ee35

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 7s 80a80ee35

@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.71%. Comparing base (2e0d99a) to head (4976e36).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1108      +/-   ##
==========================================
+ Coverage   33.25%   33.71%   +0.45%     
==========================================
  Files         805      799       -6     
  Lines       63992    62211    -1781     
==========================================
- Hits        21283    20975     -308     
+ Misses      42709    41236    -1473     

☔ 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 merged commit 018f209 into main Sep 27, 2026
4 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/ux_screenshot branch September 27, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: example Example apps, previews, sample projects, screenshots, or demo assets. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: ci GitHub Actions, test infrastructure, runners, checks, or automation. 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