inst/target-app/run_tests.R

library(testthat)
library(shinytest)

options(shiny.testmode=TRUE)

test_that("Application works", {
  expect_pass(testApp(".", compareImages = FALSE))
})

Try the target package in your browser

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

target documentation built on Nov. 8, 2020, 5:28 p.m.