Skip to content

Conversation

LaurenzV
Copy link
Collaborator

I found it really awkward to work with the test harness (generating new reference images, generating diff images, etc.), so I've rewritten it a bit to be more similiar to how we have it in vello_cpu.

First, in case a test fails it now prints a nice diff image that also shows the expected and actual versions on the left/right:
image

In case you want to override the tests that are currently failing, you can run with MAKE_REF="" cargo test --release to do so.

I've raised the pixel diff threshold to 1 because it seems like there are apparently slight differences when loading with the image crate vs. the previous code, not sure if we should set this to 0 and re-add the previously existing code instead.

Overall, this will hopefully make it easier to work with the test suite. :)

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