library(testthat)
library(shinytest)
testthis::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.
shinytest::expect_pass(shinytest::testApp("inst/application/",
compareImages = FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.