tests/test-modules/12_counter/tests/testthat.R

library(testthat)

# Run in the "current" environment, because shiny::runTests() is going to
# provision a new environment that's just for our test. And we'll want access to
# the supporting files that were already loaded into that env.
testthat::test_dir(
  "./testthat",
  env = shiny::loadSupport(),
  reporter = c("summary", "fail")
)

Try the shiny package in your browser

Any scripts or data that you put into this service are public.

shiny documentation built on Sept. 11, 2024, 7:24 p.m.