inst/app/tests/run_shinyTest.R

library(testthat)
library(shinytest)

test_that("Application works", {
  # 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(appDir = "../"))#,compareImages = FALSE))
  #expect_pass(testApp("../","shinytests/mytest.R",compareImages = FALSE))
})

Try the vici package in your browser

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

vici documentation built on April 26, 2023, 5:11 p.m.