Skip to content

Commit 108870d

Browse files
more conditional skips
1 parent 5973479 commit 108870d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/testthat/test-cache.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ test_that("it works outside of a package", {
434434
})
435435

436436
test_that("cache = TRUE workflow works", {
437+
skip_if_not_installed("cyclocomp")
438+
437439
# Need a test structure with a safe to load .lintr
438440
pkg <- "dummy_packages/package"
439441
files <- normalizePath(list.files(pkg, recursive = TRUE, full.names = TRUE))

tests/testthat/test-get_source_expressions.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ param_df$.test_name <- with(param_df, sprintf("%s on expression %d", linter, exp
414414
patrick::with_parameters_test_that(
415415
"linters pass with xml_missing() content",
416416
{
417+
skip_if_not_installed("cyclocomp")
418+
417419
if (linter == "backport_linter") {
418420
# otherwise we test the trivial linter (#2339)
419421
linter <- backport_linter(r_version = "3.6.0")

0 commit comments

Comments
 (0)