R: Compare current and expected snapshots

snapshotCompare {shinytest} | R Documentation

## Compare current and expected snapshots

### Description

This compares current and expected snapshots for a test set, and prints any differences to the console.

### Usage

    snapshotCompare(appDir, testnames = NULL, autoremove = TRUE,
      images = TRUE, quiet = FALSE, interactive = base::interactive())

    snapshotUpdate(appDir = ".", testnames = NULL, quiet = FALSE)

### Arguments

`appDir` | Directory that holds the tests for an application. This is the parent directory for the expected and current snapshot directories.
`testnames` | Name or names of a test. If NULL, compare all test results.
`autoremove` | If the current results match the expected results, should the current results be removed automatically? Defaults to TRUE.
`images` | Should screenshots and PNG images be compared? It can be useful to set this to `FALSE` when the expected results were taken on a different platform from the current results.
`quiet` | Should output be suppressed? This is useful for automated testing.
`interactive` | If there are any differences between current results and expected results, provide an interactive graphical viewer that shows the changes and allows the user to accept or reject the changes.

### See Also

`testApp`

[Package shinytest version 1.3.0 Index]