Skip to content

Commit d8f2dba

Browse files
skip impl-hook tests since we have hook tests
1 parent d2339ad commit d8f2dba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/testthat/test-impl-hook-roxygenize.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
test_that("relevant diffs can be detected", {
2+
skip_on_cran()
23
withr::with_tempdir({
34
fs::dir_create("R")
45
# when new lines are added
@@ -42,6 +43,7 @@ test_that("relevant diffs can be detected", {
4243
})
4344

4445
test_that("change in formals alone triggers invalidation", {
46+
skip_on_cran()
4547
# when the function formals change but nothing else
4648
withr::with_tempdir({
4749
fs::dir_create("R")
@@ -77,6 +79,7 @@ test_that("asserting installed dependencies", {
7779
})
7880

7981
test_that("roxygenize works in general", {
82+
skip_on_cran()
8083
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
8184
writeLines(c("#' This is a title", "#'", "#' More", "#' @name test", "NULL"), "R/blur.R")
8285
# works
@@ -89,6 +92,7 @@ test_that("roxygenize works in general", {
8992

9093

9194
test_that("fails when package is called but not installed in roclets", {
95+
skip_on_cran()
9296
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
9397
writeLines(c("NULL"), "R/blur.R")
9498
# works
@@ -107,6 +111,7 @@ test_that("fails when package is called but not installed in roclets", {
107111

108112

109113
test_that("fails gratefully when not installed package is called (packageNotFoundError)", {
114+
skip_on_cran()
110115
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
111116
writeLines(generate_uninstalled_pkg_call(), "R/blur.R")
112117
# works
@@ -119,6 +124,7 @@ test_that("fails gratefully when not installed package is called (packageNotFoun
119124
})
120125

121126
test_that("fails gratefully when not installed package is required according to `DESCRIPTION`", {
127+
skip_on_cran()
122128
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
123129
desc::desc_set_deps(
124130
tibble::tibble(type = "Imports", package = generate_uninstalled_pkg_name(), version = "*")
@@ -134,6 +140,7 @@ test_that("fails gratefully when not installed package is required according to
134140

135141

136142
test_that("fails when there is invalid code", {
143+
skip_on_cran()
137144
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
138145
mockery::stub(roxygenize_with_cache, "diff_requires_run_roxygenize", TRUE)
139146
# when there is a missing package
@@ -145,6 +152,7 @@ test_that("fails when there is invalid code", {
145152
})
146153

147154
test_that("warns if there is any other warning", {
155+
skip_on_cran()
148156
local_test_setup(git = FALSE, use_precommit = FALSE, package = TRUE)
149157
mockery::stub(roxygenize_with_cache, "diff_requires_run_roxygenize", TRUE)
150158
writeLines(

0 commit comments

Comments
 (0)