rstudio/shinytest

Automated testing for shiny apps

224

stars

846

commits

JavaScript

primary language

May 28, 2024

updated

rstudio.github.io/shinytest/

README

shinytest

CRAN RStudio mirror downloads R build status

NOTE: shinytest is deprecated and may not work with Shiny after version 1.8.1, which was released on 2024-04-02. This is because it is based on a headless browser, PhantomJS, which was last released on 2016-01-24 and is no longer being developed. Going forward, please use shinytest2, which makes use of headless Chromium-based browsers. See the shinytest to shinytest2 Migration Guide for more information.

shinytest provides a simulation of a Shiny app that you can control in order to automate testing. shinytest uses a snapshot-based testing strategy: the first time it runs a set of tests for an application, it performs some scripted interactions with the app and takes one or more snapshots of the application’s state. Subsequent runs perform the same scripted interactions then compare the results; you'll get an error if they're different.

Installation

To install the current release version:

install.packages("shinytest")

Usage

See the getting started guide to learn how to use shinytest.

Contributors

wch

572 commits

gaborcsardi

104 commits

cpsievert

56 commits

hadley

47 commits

rstudio/shinytest

Automated testing for shiny apps

224

stars

846

commits

JavaScript

primary language

May 28, 2024

updated

rstudio.github.io/shinytest/

README

shinytest

CRAN RStudio mirror downloads R build status

NOTE: shinytest is deprecated and may not work with Shiny after version 1.8.1, which was released on 2024-04-02. This is because it is based on a headless browser, PhantomJS, which was last released on 2016-01-24 and is no longer being developed. Going forward, please use shinytest2, which makes use of headless Chromium-based browsers. See the shinytest to shinytest2 Migration Guide for more information.

shinytest provides a simulation of a Shiny app that you can control in order to automate testing. shinytest uses a snapshot-based testing strategy: the first time it runs a set of tests for an application, it performs some scripted interactions with the app and takes one or more snapshots of the application’s state. Subsequent runs perform the same scripted interactions then compare the results; you'll get an error if they're different.

Installation

To install the current release version:

install.packages("shinytest")

Usage

See the getting started guide to learn how to use shinytest.

Contributors

wch

572 commits

gaborcsardi

104 commits

cpsievert

56 commits

hadley

47 commits

Languages

JavaScript

43.4%

R

37.2%

HTML

16.6%

CSS

2.9%