shinytest

After you get your Shiny application to a state where it works, it’s often useful to have an automated system that checks that it continues to work as expected. There are many possible reasons for an application to stop working. These reasons include:

  • An ugpraded R package has different behavior. (This could include Shiny itself!)
  • You make modifications to your application.
  • An external data source stops working, or returns data in a changed format.

One way to detect these problems is with manual testing – in other words, by having a person interact with the app in a browser – but this can be time-intensive, inconsistent, and imprecise. Having automated tests can alert you to these kinds of problems quickly and with almost zero effort, after the tests have been created.

The shinytest package provides tools for creating and running automated tests on Shiny applications.

To find out more about this package, see the package getting started guide.

Learn more

For more on this topic, see the following resources:

Testimng Shiny applications with Shinytest



If you have questions about this article or would like to discuss ideas presented here, please post on RStudio Community. Our developers monitor these forums and answer questions periodically. See help for more help with all things Shiny.


Start
Build
Improve