| snapshot_accept {testthat} | R Documentation |
Accept or reject modified snapshots
Description
-
snapshot_accept()accepts all modified snapshots. -
snapshot_reject()rejects all modified snapshots by deleting the.newvariants. -
snapshot_review()opens a Shiny app that shows a visual diff of each modified snapshot. This is particularly useful for whole file snapshots created byexpect_snapshot_file().
Usage
snapshot_accept(files = NULL, path = "tests/testthat")
snapshot_reject(files = NULL, path = "tests/testthat")
snapshot_review(files = NULL, path = "tests/testthat", ...)
Arguments
files |
Optionally, filter effects to snapshots from specified files.
This can be a snapshot name (e.g. |
path |
Path to tests. |
... |
Additional arguments passed on to |
[Package testthat version 3.3.2 Index]