tests/testthat/test-golem-recommended.R

# context("golem tests")
# 
# library(golem)
# 
# test_that("app ui", {
#   ui <- app_ui()
#   expect_shinytaglist(ui)
# })
# 
# test_that("app server", {
#   server <- app_server
#   expect_is(server, "function")
# })
# 
# test_that(
#   "app launches",{
#     skip_on_cran()
#     skip_on_travis()
#     skip_on_appveyor()
#     x <- processx::process$new(
#       "R",
#       c(
#         "-e",
#         "pkgload::load_all();run_app()"
#       )
#     )
#     Sys.sleep(10) # app is loading quite long
#     expect_true(x$is_alive())
#     x$kill()
#   }
# )
# 
# 
# 
# 
# 
# 
# 
# 
PrzeChoj/predPCR documentation built on Sept. 8, 2020, 11:44 p.m.