snapshotCompare: Compare current and expected snapshots

Description Usage Arguments See Also

View source: R/snapshot.R

Description

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

Usage

1
2
3
4
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


rstudio/shinytest documentation built on Nov. 2, 2018, 8:59 a.m.