tests/testthat/test_explorer_app.R

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

library(shinytest)

test_that("explorer 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 = "corporaexplorer", "explorer")
  expect_pass(testApp(appdir, compareImages = FALSE))
})

Try the corporaexplorer package in your browser

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

corporaexplorer documentation built on June 20, 2022, 5:20 p.m.