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 graphical tests with vdiffr::expect_doppelganger() #176

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nanxstats
Copy link
Collaborator

@nanxstats nanxstats commented Nov 15, 2024

Fixes #175

This PR refactors all graphical snapshot tests to use vdiffr::expect_doppelganger() which saves and compares to reproducible SVG outputs, and add the snapshot SVG files to the repo.

Note that .Rbuildignore still has tests/testthat/_snaps/ ignored. This means the snapshot won't be available for comparison when running R CMD check and the snapshot tests will always pass. Making the snapshots available and tracked in the repo is still useful though because they can be compared to in development mode, such as when running devtools::test().

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.

Use vdiffr in graphical snapshot tests
1 participant