Skip to content

Remove screenshot tolerance from tests - #1839

Open
Una539 wants to merge 1 commit into
linebender:mainfrom
Una539:remove-screenshot-tolerance
Open

Remove screenshot tolerance from tests#1839
Una539 wants to merge 1 commit into
linebender:mainfrom
Una539:remove-screenshot-tolerance

Conversation

@Una539

@Una539 Una539 commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Remove screenshot tolerance from screenshot tests and use exact pixel comparison.

Fixes #1759

Motivation

After switching to vello_cpu, screenshot tests appear deterministic enough on my machine to remove the tolerance parameter.

I tested locally by setting tolerance to 0. Existing screenshots were regenerated using:

MASONRY_TEST_BLESS=1 cargo test -p masonry

After regeneration, running the test suite twice with zero tolerance passed.

Changes

  • Remove screenshot_tolerance from TestHarness
  • Make screenshot comparison exact
  • Update screenshot references
  • Update documentation

@PoignardAzur

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

This looks good at first glance, but I'm leaving for vacation today, so I won't have time to review this. Ping me in a week if I haven't followed up on this.

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.

Remove screenshot tolerance from tests

2 participants