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

Create test for ggplot2 theme #12

Open
judith-bourque opened this issue Dec 23, 2022 · 1 comment
Open

Create test for ggplot2 theme #12

judith-bourque opened this issue Dec 23, 2022 · 1 comment
Labels
test Automatic tests

Comments

@judith-bourque
Copy link
Owner

judith-bourque commented Dec 23, 2022

Issue

When modifications are made to the package, tests would allow to validate automatically that the theme still behaves as predicted.

Proposal

Create test for ggplot2 theme based on ggplot2 theme vignette in package

@judith-bourque judith-bourque added the test Automatic tests label Dec 23, 2022
@judith-bourque
Copy link
Owner Author

  • Install vdiffr
  • Add differ to suggests
  • Add test:
test_that("output of ggplot() is stable", {
  vdiffr::expect_doppelganger("A blank plot", ggplot())
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Automatic tests
Projects
None yet
Development

No branches or pull requests

1 participant