Skip to content

Commit

Permalink
skip most tests on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
nbenn committed Dec 29, 2023
1 parent 680e13b commit 3c72261
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-callback.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("aumc callbacks", {

skip_if_not_installed("mockthat")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-concept.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("load hirid items", {

skip_if_not_installed("mockthat")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("expect_all_identical", {

expect_success(expect_all_identical("foo", "foo"))
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-scores.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

skip_if_srcs_missing(c("mimic_demo", "eicu_demo"))

so_mi <- load_concepts("sofa", "mimic_demo", verbose = FALSE)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-setup-attach.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("auto attach env var", {

srcs <- c("mimic_demo", "eicu_demo")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-setup-download.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

mock_fetch_memory <- function(url, handle, ...) {

file <- system.file("testdata", paste0(basename(url), ".rds"),
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tbl-base.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("icu_tbl subsetting", {

col <- runif(10)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tbl-class.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("id_tbl constructors", {

tbl <- id_tbl(a = 1:10, b = rnorm(10))
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tbl-utils.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("rename_cols for id_tbl", {

tbl <- id_tbl(a = 1:10, b = rnorm(10), c = rnorm(10))
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-utils-cli.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("cli progress", {

skip_if_not_installed("mockthat")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-utils-file.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_on_cran()

test_that("data dir", {

dir <- withr::with_envvar(
Expand Down

0 comments on commit 3c72261

Please sign in to comment.