Skip to content

Commit 3a52b54

Browse files
authored
Merge pull request #107 from r-lib/testthat3e
Use testthat 3e for snapshot management
2 parents ff86b3b + 99d80b5 commit 3a52b54

File tree

93 files changed

+1716
-3318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1716
-3318
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
^LICENSE\.md$
1414
^codecov\.yml$
1515
^\.github$
16+
^revdep$

DESCRIPTION

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ Authors@R: c(
66
person("Thomas Lin", "Pedersen", , "[email protected]",
77
role = "aut", comment = c(ORCID = "0000-0002-5147-4711")),
88
person("RStudio", role = "cph"),
9-
person("Carl", "Sutherland", role = "aut", comment = "jg-imagediff library"),
10-
person("Humble Software", role = "cph", comment = "jg-imagediff library"),
11-
person("David", "Hong", role = "aut", comment = "TwoFace library"),
12-
person(family = "jQuery Foundation", role = "cph", comment = "jQuery library"),
13-
person(family = "jQuery contributors", role = c("ctb", "cph"),
14-
comment = "jQuery library; authors listed in inst/htmlwidgets/lib/jquery-authors.txt"),
159
person("T Jake", "Luciani", , "[email protected]", "aut", comment = "svglite"),
1610
person("Matthieu", "Decorde", , "[email protected]", "aut", comment = "svglite"),
1711
person("Vaudor", "Lise", , "[email protected]", "aut", comment = "svglite"),
@@ -34,12 +28,11 @@ Imports:
3428
diffobj,
3529
glue,
3630
grDevices,
37-
htmlwidgets (>= 0.6),
3831
htmltools,
32+
lifecycle,
3933
purrr (>= 0.2.0),
4034
rlang,
4135
R6,
42-
shiny,
4336
testthat (>= 1.0.0),
4437
usethis (>= 1.4.0),
4538
xml2 (>= 1.0.0)

NAMESPACE

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,11 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method(print,cases)
4-
export(add_dependency)
5-
export(collect_cases)
6-
export(collect_mismatched_cases)
7-
export(collect_new_cases)
8-
export(collect_orphaned_cases)
9-
export(delete_orphaned_cases)
10-
export(diffOutput)
11-
export(diffTransition)
123
export(expect_doppelganger)
13-
export(last_collection_error)
14-
export(manage_cases)
15-
export(renderToggle)
16-
export(slideOutput)
17-
export(slideTransition)
18-
export(toggleOutput)
19-
export(validate_cases)
20-
export(vdiffrAddin)
21-
export(widget_diff)
22-
export(widget_diff_)
23-
export(widget_slide)
24-
export(widget_slide_)
25-
export(widget_toggle)
26-
export(widget_toggle_)
274
export(write_svg)
285
import(rlang)
296
importFrom(R6,R6Class)
307
importFrom(glue,glue)
8+
importFrom(lifecycle,deprecated)
319
importFrom(purrr,compact)
3210
importFrom(purrr,every)
3311
importFrom(purrr,keep)

NEWS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# vdiffr (development version)
22

3+
This release includes two major changes:
4+
5+
1. The internal SVG engine has been updated. This means you will have
6+
to regenerate all existing snapshots.
7+
8+
2. The snapshot management system now uses testthat (see
9+
https://testthat.r-lib.org/articles/snapshotting.html). Most of the
10+
R and javascript code has been removed from vdiffr as a consequence.
11+
vdiffr now serves as a reproducible SVG generation engine for
12+
testthat snapshots.
13+
14+
15+
## Migration of existing snapshots
16+
17+
There are two steps to update your snapshots to vdiffr 1.0.
18+
19+
1. This step is optional. Install the github-only 0.4.0 version of
20+
vdiffr with `remotes::install_github("r-lib/[email protected]")`. This
21+
release only contains the new SVG engine. Review the snapshot
22+
changes as usual with `vdiffr::manage_cases()`.
23+
24+
2. Install vdiffr 1.0.0 from CRAN, delete the `tests/figs` directory,
25+
run `devtools::test()`, and then `testthat::snapshot_review()`.
26+
27+
328
# vdiffr 0.4.0
429

530
This is a github-only release that is meant to help you migrate from

R/cases-ui.R

Lines changed: 0 additions & 41 deletions
This file was deleted.

R/cases.R

Lines changed: 0 additions & 247 deletions
This file was deleted.

0 commit comments

Comments
 (0)