Skip to content

Commit

Permalink
update test skip criteria for drone
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmcd18 committed Sep 26, 2023
1 parent 09613b7 commit 95d247e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-renderQCSummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ logAccept(file = "file3.R")
add_file("file.R", "something-new")
add_commit("second")

if (interactive()) {
if (Sys.getenv("METWORX_VERSION") != "") {
test_that("renderQCSummary works with valid directory", {

expect_silent({
Expand All @@ -36,7 +36,7 @@ if (interactive()) {
expect_true(file.exists(file.path(logRoot(), paste0("qc-summary-", Sys.Date(), ".pdf"))))

})

test_that("renderQCSummary doesn't save file if directory not given", {

temp_dir <- tempdir()
Expand Down

0 comments on commit 95d247e

Please sign in to comment.