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

Unit testing record ggplot #13

Open
b-rodrigues opened this issue Mar 25, 2023 · 1 comment
Open

Unit testing record ggplot #13

b-rodrigues opened this issue Mar 25, 2023 · 1 comment

Comments

@b-rodrigues
Copy link
Owner

It'd be great to unit test record ggplot

but testing plots is not easy. Maybe a snapshot test? See https://testthat.r-lib.org/articles/snapshotting.html

@b-rodrigues
Copy link
Owner Author

Since a ggplot is a list, maybe we could save the list as an rds file and expect_equal the save list from the rds with the freshly generated one? Could be easy

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

No branches or pull requests

1 participant