Skip to content

Commit

Permalink
restore skip_on_ci()
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Sep 2, 2023
1 parent 30573dc commit 8c02006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,11 @@ testfile_path <- function(x, replace = FALSE) {

fl <- testthat::test_path("testfiles", x)

if (Sys.getenv("openxlsx2_testthat_fullrun") == "") {
if (length(capture.output(try(testthat::skip_on_ci()))))
return(testthat::skip("Testfile does not exist"))
}

# try to download
if (!file.exists(fl) || replace) {
# relies on libcurl and was optional in R < 4.2.0 on Windows
Expand Down
4 changes: 0 additions & 4 deletions tests/testthat/test-aaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ test_that("testsetup", {

options("openxlsx2.datetimeCreated" = as.POSIXct("2023-07-20 23:32:14"))

if (Sys.getenv("openxlsx2_testthat_fullrun") == "") {
skip_on_ci()
}

})

0 comments on commit 8c02006

Please sign in to comment.