Testing Shiny applications with Shinytest - Shiny developers now have tools for automated testing of complete applications.

October 4, 2017 Winston Chang

Download Materials

Abstract
One of the most useful tools for deploying applications in production is an automated test system. Automated tests allow developers to be more confident when they modify their code, and it allows IT stuff to worry less that software upgrades will break existing applications.
Shiny developers now have tools for automated testing of complete applications, with the Shinytest package, so that you can be confident that your applications will keep operating as expected. Shinytest provides an easy-to-use test recorder that lets you create test scripts simply interacting with your application as usual. A test script represents user actions, and it plays back those actions with the application, using a headless browser. Shinytest records and saves the behavior of the application in response to these user actions. In the future, you run the test script again on the application, and the application’s new behavior is compared to its previous behavior; if there are any changes, it will alert you so that you can inspect the new behavior, and either confirm that the new behavior is expected, or reject it and find the cause of the changed behavior.
Shinytest can be used with continuous integration so that applications are tested every time code is committed. This webinar is for anyone who wants to learn how to use automated tests to make their Shiny applications more reliable and have fewer surprises in production.

About the Author

Winston Chang

Winston is a software engineer at RStudio, and is a developer for the Shiny, ggplot2, and devtools packages. He holds a Ph.D. in psychology from Northwestern University and is the author of R Graphics Cookbook, published by O’Reilly Media.

Follow on Twitter Visit Website More Content by Winston Chang
Previous Video
General data science overview - data acquisition and wrangling, exploratory data analysis, data visualization, and effective communication.
General data science overview - data acquisition and wrangling, exploratory data analysis, data visualization, and effective communication.

The courses focuses on data acquisition and wrangling, exploratory data analysis, data visualization, and e...

Next Video
Introduction to shiny
Introduction to shiny

Shiny is an R package that makes it easy to build interactive web apps straight from R.

×

Please register to receive regular updates on our webinars.

!
Thank you!
Error - something went wrong!