Skip to content

Commit

Permalink
skip tests on cran
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Sep 14, 2023
1 parent c10be17 commit 18ac6f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-package-building-functions-snaps.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tests for code and help generation for specific selected QGIS functions

test_that("Functions build code and doc tessellate", {

skip_on_cran()
skip_in_RCDMCHECK()

alg_help <- get_alg_help("tessellate")
Expand All @@ -11,7 +11,7 @@ test_that("Functions build code and doc tessellate", {
})

test_that("Functions build code and doc retile", {

skip_on_cran()
skip_in_RCDMCHECK()

alg_help <- get_alg_help("retile")
Expand All @@ -21,7 +21,7 @@ test_that("Functions build code and doc retile", {
})

test_that("Functions build code and doc i.cluster", {

skip_on_cran()
skip_in_RCDMCHECK()

alg_help <- get_alg_help("i.cluster")
Expand All @@ -31,7 +31,7 @@ test_that("Functions build code and doc i.cluster", {
})

test_that("Functions build code and doc r.sim.water", {

skip_on_cran()
skip_in_RCDMCHECK()

alg_help <- get_alg_help("r.sim.water")
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-package-building-functions.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Test internal package building functions

test_that("Functions fix parameter names", {

skip_on_cran()
skip_in_RCDMCHECK()

source(here::here("build-package", "build-functions", "functions_fix_parameter_names.R"))
Expand Down Expand Up @@ -33,7 +33,7 @@ test_that("Functions fix parameter names", {
})

test_that("Functions fix_description", {

skip_on_cran()
skip_in_RCDMCHECK()

source(here::here("build-package", "build-functions", "functions_fix_parameter_names.R"))
Expand All @@ -49,7 +49,7 @@ test_that("Functions fix_description", {
})

test_that("Functions fix_description", {

skip_on_cran()
skip_in_RCDMCHECK()

source(here::here("build-package", "build-functions", "functions_fix_parameter_names.R"))
Expand All @@ -72,7 +72,7 @@ test_that("Functions fix_description", {
})

test_that("Functions fix_description", {

skip_on_cran()
skip_in_RCDMCHECK()

source(here::here("build-package", "build-functions", "functions_fix_algorithm_id.R"))
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_gdal_ogrinfo.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("Test run qgis::gdal_ogrinfo", {
skip_on_cran()
skip_if_not_installed("sf")

sf_nc <- sf::st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_qgis_buffer.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("Test run qgis::qgis_buffer", {
skip_on_cran()
skip_if_not_installed("sf")

sf_nc <- sf::st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
Expand Down

0 comments on commit 18ac6f1

Please sign in to comment.