tests/testthat/test_golem_recommended.R

test_that("app ui", {
  ui <- app_ui()
  golem::expect_shinytaglist(ui)
})

test_that("app server", {
  server <- app_server
  expect_is(server, "function")
})

# Configure this test to fit your need
test_that("app launches", {
  skip_if_not(interactive())
  expect_running(sleep = 5)
})

Try the dragon package in your browser

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

dragon documentation built on April 8, 2022, 9:07 a.m.