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.
Installation
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)
Utility function tests
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 ]