mstsap
(Mastering shiny testServer()
app-package) is a collection of
tests using testthat
and
shiny::testServer()
.
The modules and applications in mstsap
come from the Shiny modules
chapter of Mastering
Shiny.
You don’t have to install the mstsap
package, but you might want to
download it as an example (or read through this
post to learn about
it’s contents).
install.packages("remotes")
remotes::install_github("mjfrigaard/mstsap")
library(mstsap)
There is a single utility function in mstsap
: find_vars()
#> tests/testthat/
#> └── test-find_vars.R
testthat::test_file("tests/testthat/test-find_vars.R")
#> [ FAIL 0 | WARN 0 | SKIP 0 | PASS 4 ]
#> tests/testthat/
#> ├── test-datasetApp.R
#> ├── test-datasetServer.R
#> ├── test-selectDataVarApp.R
#> ├── test-selectDataVarServer.R
#> ├── test-selectVarApp.R
#> └── test-selectVarServer.R
🐝 Your tests are the bee's knees 🐝