tests/testthat/test-app-file.R

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

library(shinytest)

test_that("app works", {
  # Don't run these tests on the CRAN build servers
  skip_on_cran()

  # 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 = "qr4genebanks", "appdir")
  expect_pass(testApp(appdir, "mytest.R"))
})
rsimon64/qr4genebanks documentation built on May 13, 2019, 9:52 p.m.