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))
})
borishejblum/vici documentation built on July 7, 2024, 5:14 a.m.