tests/testthat.R

library(testthat)

test_dir(
  "./testthat",
  # Run in the app's environment containing all support methods.
  env = shiny::loadSupport(),
  # Display the regular progress output and throw an error if any test error is found
  reporter = c("progress", "fail")
)
rstudio/shiny-testing-gha-example documentation built on July 20, 2020, 9:02 p.m.