r-lib / vdiffr

Visual regression testing and graphical diffing with testthat
https://vdiffr.r-lib.org
Other
180 stars 31 forks source link

Adding a `variant` support for snapshots? #125

Open danielinteractive opened 1 year ago

danielinteractive commented 1 year ago

Hello team, first of all thanks for vdiffr- very important for the testing of plot functions. One question - did you consider already adding variant support similar as shinytest2 e.g. has? That could come in handy to save snapshots from different ggplot2 package versions e.g.

lionel- commented 1 year ago

yes in fact part of the motivation for adding a variant mechanism in testthat was to support multiple svg snapshots for different R versions..