snapshotCompare | R Documentation |
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)
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 |
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. |
suffix |
An optional suffix for the expected results directory. For
example, if the suffix is |
testApp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.