Skip to content

Commit

Permalink
test: skipp all tests (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Aug 7, 2023
1 parent 70faeb3 commit 7e9b862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Tests

- In `tests/testthat/test-load_rcc.R`,
- fix: add `testthat::skip_on_cran()` to decrease CRAN checks computation time.
- fix: skip tests to decrease CRAN checks computation time.

**Full Changelog**: <https://github.com/mcanouil/NACHO/compare/v2.0.4...v2.0.5>

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ library(NACHO)

# setwd("tests")

if (!identical(Sys.getenv("NOT_CRAN"), "true")) return()

rcc_files_directory <- "testthat/plexset_data"
plexset_files <- list.files(rcc_files_directory, full.names = TRUE, pattern = "\\.RCC")
plexset_tidy <- data.frame(stringsAsFactors = FALSE,
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-load_rcc.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ test_that("no housekeeping norm and prediction", {
})

test_that("using GEO", {
skip_on_cran()
gse <- try(GEOquery::getGEO(GEO = "GSE74821"), silent = TRUE)
if (!inherits(gse, "try-error")) {
targets <- Biobase::pData(Biobase::phenoData(gse[[1]]))
Expand Down

0 comments on commit 7e9b862

Please sign in to comment.