tests/testthat/test-shiny.R

library(shinytest)
test_that("shiny", {
  # Launch the target app (replace with the correct path)
  # recordTest("inst/examples/shiny")

  skip_on_cran()
  skip_on_ci() # These test are unreliable from version to version
  skip_on_os("windows")
  
  # Only run the tests for code coverage on Github Actions
  
  
  # 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 = "nomnoml", "examples/shiny")
  expect_pass(
    testApp(appdir, compareImages = FALSE)
  )
})

Try the nomnoml package in your browser

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

nomnoml documentation built on Nov. 20, 2023, 5:09 p.m.