-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update visual tests with dev vdiffr #2886
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
Conversation
Thanks @lionel-. So, just to confirm, this change will require ggplot2 developers to update their version of vdiffr in order to pass tests. Already as of #2856, visual testing is dependent on the dev version of vdiffr but if a developer downloaded 0.2.3.9000 more than 5 days ago (prior to lionel-/vdiffr#40), their tests will run and break until they update. OK to merge @hadley ? |
Good point. I have just bumped the development version, could you make ggplot2 depend on vdiffr >= 0.2.3.9001 please? |
Done. I bumped it both in the check within the |
With the changes to vdiffr, are we now in a situation where all Travis runs will break until this is merged? If yes, then we should merge ASAP. And also, is there any reason why the AppVeyor build failed? That seems strange. |
Strange, it looks like it failed to load scales and the proper version of vdiffr: https://ci.appveyor.com/project/tidyverse/ggplot2/build/1.0.1197#L392 may be related to my change of the DESCRIPTION file or possibly just a random Appveyor failure? I can take a better look as soon as I am back to my desktop. And yes, if Travis is pulling the newest version of vdiffr dev then builds are going to fail. Let's try and get this merged today. |
I've sometimes seen random Appveyor breaks. Unfortunately we can't restart the build except by making another commit. |
Hmm yeah. Appveyor does not like the predicate version number added to the DESCRIPTION file. It's not strictly required so I will remove it. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
This PR regenerates the visual test case files using the development version of vdiffr which now uses
ggplot2::theme_test()
rather than an internal function to allow for easy editing. The shift changes plot dimensions slightly for all plots for whichtheme_test()
is applied because of minor differences between the theme specifications -- see lionel-/vdiffr#40 for more details.