Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(fixtures): Move to snapbox with SVGs #86

Merged
merged 1 commit into from Mar 4, 2024

Conversation

Muscraft
Copy link
Contributor

@Muscraft Muscraft commented Mar 2, 2024

I was not happy with how fixtures were currently being run, as when one failed it would take down the whole thing failed, and it could not continue past the failed fixture test. To make this better I switched the fixture tests to use a custom test harness, built on top of snapbox::harness::Harness. This makes it so each test is run by itself so you can see exactly which test is failing. In doing this I also switched the expected output to be compared to SVGs, which makes seeing visual changes much easier, while still retaining the ability to see the text differences.

@Muscraft Muscraft force-pushed the use-snapbox-for-testing branch 2 times, most recently from 4632fe9 to 193b194 Compare March 2, 2024 23:38
Cargo.toml Outdated Show resolved Hide resolved
@epage epage merged commit 027c95b into rust-lang:master Mar 4, 2024
15 checks passed
@Muscraft Muscraft deleted the use-snapbox-for-testing branch March 4, 2024 17:07
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.

None yet

2 participants