vdiffr
vdiffr copied to clipboard
"generated under a different vdiffr version"
If I test just that one test-file, then it skips and does nothing. If I test the whole package, it deletes all of the .svg
files. At no time am I given the option to regenerate or even know why this behavior is occurring.
I get that there is an intention to rebuild them https://github.com/r-lib/vdiffr/blob/45bc98a9219485e51bdaf9eaa66de1f6af4ca02c/R/expect-doppelganger.R#L137-L138 but I find this behavior disrupting and likely avoidable.
Why this dead-end?
devtools::test("mypkg/", filter="950")
# ℹ Testing mypkg
# ✔ | F W S OK | Context
# ✔ | 1 40 | 950-plot-all-tracks [3.5s]
# ══ Results ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
# Duration: 3.5 s
# ── Skipped tests (1) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# • SVG snapshot generated under a different vdiffr version. (1): test-950-plot-all-tracks.R:24:7
# [ FAIL 0 | WARN 0 | SKIP 1 | PASS 40 ]
devtools::test("mypkg/")
# ℹ Testing mypkg
# ✔ | F W S OK | Context
# ✔ | 6 | 050-approxBounded
#.....
# ✔ | 1 40 | 950-plot-all-tracks [3.0s]
# ══ Results ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
# Duration: 9.3 s
# ── Skipped tests (1) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# • SVG snapshot generated under a different vdiffr version. (1): test-950-plot-all-tracks.R:24:7
# [ FAIL 0 | WARN 0 | SKIP 1 | PASS 122 ]
# Deleting unused snapshots:
# • 950-plot-all-tracks/ggplot-track-combined-1.svg
# • 950-plot-all-tracks/ggplot-track-combined-2.svg
# • 950-plot-all-tracks/ggplot-track-combined-3.svg
# • 950-plot-all-tracks/ggplot-track-combined-4.svg
#.....
# • 950-plot-all-tracks/ggplot-track-combined-31.svg