tests/testthat/test-shiny.R

context("shiny tests")
# This file is for testing the applications in the inst/ directory.

library(shinytest)

test_that("bddwc.app() works", {
  
  # Don't run these tests on the CRAN build servers
  skip_on_cran()
  skip_on_travis()
  
  # 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.
  appdir <- system.file(package = "bddwc.app", "app")
  expect_pass(testApp(appdir, compareImages = FALSE))
})
bd-R/bddwc.app documentation built on Oct. 6, 2021, 6:44 a.m.