tests/testthat.R

library(testthat)
library(shinytest)

if (Sys.getenv("NOT_CRAN", "") != "" || Sys.getenv("CI", "") != "") {
  if (!dependenciesInstalled()) installDependencies()
  message("Using phantom.js from ", shinytest:::find_phantom(), "\n")
  test_check("shinytest")
}
MangoTheCat/shinytest documentation built on Feb. 13, 2019, 3:31 p.m.