tests/testthat/test-golem-recommended.R

# library(golem)
# 
# Uncomment these functions and test in RStudio; 
# Conflicts with Git Actions
#
# test_that("app ui", {
#   ui <- app_ui()
#   expect_shinytaglist(ui)
# })
# 
# test_that("app server", {
#   server <- app_server
#   expect_type(server, "closure")
# })
# 
# # Configure this test to fit your need
# test_that(
#   "app launches",{
#     skip_on_cran()
#     skip_on_travis()
#     skip_on_appveyor()
#     x <- processx::process$new(
#       "R", 
#       c(
#         "-e", 
#         "pkgload::load_all(here::here());run_app()"
#       )
#     )
#     Sys.sleep(5)
#     expect_true(x$is_alive())
#     x$kill()
#   }
# )
# 
# 
# 
# 
TracyRage/muddy_db documentation built on Nov. 28, 2021, 7:28 p.m.