Skip to content

[codex] Add ruler screenshot regression tests - #223

Merged
pascalpp merged 2 commits into
mainfrom
codex/211-screenshot-tests
Jun 15, 2026
Merged

pascalpp merged 2 commits into
mainfrom
codex/211-screenshot-tests

Conversation

@pascalpp

Copy link
Copy Markdown
Owner

Summary

Closes #211.

Adds screenshot regression coverage for representative ruler renderings without launching the full app UI. The snapshots cover zero-corner horizontal/vertical ruler layouts and mouse tick label placement across deterministic light/dark ruler colors.

The change also replaces several broad numeric layout unit tests with the screenshot assertions, keeps narrower behavioral unit tests in place, and adds yarn test:regenerate:snapshots for updating baselines intentionally.

Validation

  • Baseline before changes: /usr/bin/time -p yarn test passed in real 123.03s
  • yarn test:regenerate:snapshots
  • xcodebuild -project "Free Ruler.xcodeproj" -scheme "Free Ruler" test -only-testing:FreeRulerTests
  • /usr/bin/time -p yarn test passed in real 119.00s

Note: one intermediate full-suite run hit an Xcode RunningBoard/launchd app-spawn failure; a standalone UI rerun and the final full suite both passed.

@pascalpp
pascalpp marked this pull request as ready for review June 15, 2026 05:24
@pascalpp
pascalpp merged commit 67deb7e into main Jun 15, 2026
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.

[codex suggestion] Add screenshot regression tests

1 participant