tests/testthat/test-app-function.R

# context("app-function")
# This file is for testing the applications in the apps/ directory.

library(shinytest)

test_that("run_app() works", {
  # Don't run these tests on the CRAN build servers
  skip_on_cran()
  
  skip_if_not(interactive())
  
  # Use compareImages=FALSE because the expected image screenshots were created
  # on a Mac, and they will differ from screenshots taken on the CI platform,
  # which runs on Linux.
  expect_pass(testApp(test_path("apps/kesernetwork/"), compareImages = FALSE))
})

Try the kesernetwork package in your browser

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

kesernetwork documentation built on March 18, 2022, 7:24 p.m.