Skip to content

Commit

Permalink
skip some snapshot tests on windows, linux, and covr
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed May 16, 2024
1 parent e66e523 commit 808bc8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-confint-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ test_that("confint.fderiv example output", {
)
)

# skip_on_ci() # testing without as moved to mac os x
# skip_on_ci()
skip_on_covr()
skip_on_os(os = c("linux", "windows"))
expect_snapshot_output(x2_sint)
})
2 changes: 2 additions & 0 deletions tests/testthat/test-fderiv.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ mod <- gam(y ~ s(x0) + s(x1) + fac, data = su_eg4, method = "REML")
test_that("fderiv is deprecated", {
skip_on_cran()
# skip_on_ci() # testing without as moved to mac os x
skip_on_covr()
skip_on_os(os = c("linux", "windows"))
skip_if_not_installed("withr")
withr::local_options(digits = 3)
expect_snapshot(fderiv(mod))
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-response-derivatives.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
test_that("first order response derivatives works", {
skip_on_cran()
# skip_on_ci() # testing without as moved to mac os x
skip_on_covr()
skip_on_os(os = c("linux", "windows"))

N <- 50L
expect_silent(ds <- data_slice(m_nb,
Expand Down Expand Up @@ -38,6 +40,8 @@ test_that("first order response derivatives works", {
test_that("second order response derivatives works", {
skip_on_cran()
# skip_on_ci() # testing without as moved to mac os x
skip_on_covr()
skip_on_os(os = c("linux", "windows"))

N <- 50L
expect_silent(ds <- data_slice(m_nb,
Expand Down

0 comments on commit 808bc8c

Please sign in to comment.