tests/testthat.R

Sys.setenv("R_TESTS" = "")
library(testthat, quietly = TRUE)
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
  # NOT_CRAN
  # run all tests
  
  test_check("AzureSMR")
  # test_check("AzureSMR", filter = "1-authentication")
  # test_check("AzureSMR", filter = "2-resources")

} else {
  # CRAN
  # skip some tests on CRAN, to comply with timing directive and other policy
  test_check("AzureSMR")
  # test_check("AzureSMR", filter = "1-authentication")
  # test_check("AzureSMR", filter = "2-resources")
}
ymmah/AzureSMR documentation built on May 6, 2019, 10:53 a.m.