Skip to content

Commit 1b12bf7

Browse files
Optionally skip test requiring 'codetools'
1 parent db94973 commit 1b12bf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testthat/test-standalone.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ test_that("gitcreds is standalone", {
66
funobjs <- mget(funs, stenv)
77
for (f in funobjs) expect_identical(environmentName(topenv(f)), "base")
88

9+
skip_if_not_installed("codetools")
910
expect_message(
1011
mapply(codetools::checkUsage, funobjs, funs,
1112
MoreArgs = list(report = message)),

0 commit comments

Comments
 (0)