Test Shiny Apps

Please see the 'shinytest' to 'shinytest2' migration guide at < https://rstudio.github.io/shinytest2/articles/z-migration.html>.


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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("shinytest")

1.6.1 by Winston Chang, 2 years ago


https://github.com/rstudio/shinytest


Report a bug at https://github.com/rstudio/shinytest/issues


Browse source code at https://github.com/cran/shinytest


Authors: Winston Chang [aut, cre] , Gábor Csárdi [aut] , Hadley Wickham [aut] , Posit Software , PBC [cph, fnd] , Ascent Digital Services [cph, ccp]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports assertthat, callr, crayon, debugme, digest, htmlwidgets, httpuv, httr, jsonlite, parsedate, pingr, R6, rematch, rlang, rstudioapi, shiny, testthat, utils, webdriver, withr

Suggests flexdashboard, globals, rmarkdown

System requirements: PhantomJS (http://phantomjs.org/)


Suggested by IDEAFilter, TreeSearch, baRcodeR, grapesAgri1, jsmodule, kesernetwork, leafdown, mlr3shiny, mmaqshiny, nomnoml, oceanexplorer, optimall, phecodemap, presize, r2d3, scdhlm, shinyTree, shinyauthr, shinymgr, shinymodels, shinytest2, viewpoly.


See at CRAN