Skip to content

Add blessed mode for reference tests#3062

Open
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:test-bless-refs
Open

Add blessed mode for reference tests#3062
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:test-bless-refs

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

This adds a blessed mode to update/create reference images.

Usage is simple. Run BLESS=1 cargo test.

The implementation is also simple. Instead of writing changed/missing references to tests/output, write them directly to tests/references and don't error on changes. This also has the nice property that people can keep using the existing workflow of copying images from tests/output if they don't use BLESS=1.

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.

1 participant