testApp | R Documentation |
Run tests for a Shiny application
testApp(
appDir = ".",
testnames = NULL,
quiet = FALSE,
compareImages = TRUE,
interactive = is_interactive(),
suffix = NULL
)
appDir |
Path to directory containing a Shiny app (e.g. |
testnames |
Test script(s) to run. The .R extension of the filename is
optional. For example, |
quiet |
Should output be suppressed? This is useful for automated testing. |
compareImages |
Should screenshots be compared? It can be useful to set
this to |
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 |
snapshotCompare()
and snapshotUpdate()
if
you want to compare or update snapshots after testing. In most cases, the
user is prompted to do these tasks interactively, but there are also times
where it is useful to call these functions from the console.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.