Skip to content

mjfrigaard/mstsap

Repository files navigation

mstsap

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 ]

testServer() tests

#> 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 🐝

About

Mastering Shiny testServer() application package (demo)

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages