Skip to content

Commit

Permalink
skip test is xml2 is also not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-masel committed Aug 30, 2023
1 parent 57e8073 commit d648e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-get.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ test_that("lint returns expected result when option is changed", {

test_that("library lint returns expected result when multiple linters are set", {
skip_if_not_installed("lintr")
skip_if_not_installed("xml2")

options("log.rx" = NULL)
withr::local_options(log.rx.lint = c(library_call_linter(), lintr::undesirable_operator_linter()))
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-writer.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ test_that("write_lint_results will return a formatted lint results element", {

test_that("write_lint_results works when linter is used but no lints found", {
skip_if_not_installed("lintr")
skip_if_not_installed("xml2")

filename <- test_path("ref", "ex6.R")
source(filename, local = TRUE)
Expand Down

0 comments on commit d648e47

Please sign in to comment.