tests/testthat/test_app_1.R

# This file is for testing the applications in the apps/ directory.

test_that("fix_date_app() works", {
  # Don't run these tests on the CRAN build servers
  skip_on_cran()
  skip_if_not(Sys.info()["sysname"] == "Darwin", message = "Not run on macOS")
  withr::local_package("shinytest")

  expect_pass(testApp(test_path("apps/fix_date_theme/"), compareImages = TRUE))
})

Try the datefixR package in your browser

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

datefixR documentation built on Oct. 24, 2022, 5:08 p.m.