Skip to content

Commit be3c1b0

Browse files
committed
Set stop_on_failure() explicitly
For compatibility with testthat 3
1 parent d22f784 commit be3c1b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testthat/setup-mock.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ vars <- c(
1515
NOT_CRAN = "true"
1616
)
1717
withr::with_envvar(vars, {
18-
test_results <- testthat::test_dir(mock_test_dir, reporter = "silent")
18+
test_results <- testthat::test_dir(
19+
mock_test_dir,
20+
reporter = "silent",
21+
stop_on_failure = FALSE
22+
)
1923
})
2024

2125
mock_cases_outputs <- purrr::quietly(purrr::safely(collect_cases))(mock_pkg_dir)

0 commit comments

Comments
 (0)