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

snapshotCompare(
appDir,
testnames = NULL,
autoremove = TRUE,
images = TRUE,
quiet = FALSE,
interactive = is_interactive(),
suffix = NULL
)

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

Arguments

appDir Directory that holds the tests for an application. This is the parent directory for the expected and current snapshot directories. Name or names of a test. If NULL, compare all test results. If the current results match the expected results, should the current results be removed automatically? Defaults to TRUE. 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. Should output be suppressed? This is useful for automated testing. 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. An optional suffix for the expected results directory. For example, if the suffix is "mac", the expected directory would be mytest-expected-mac.

testApp()