Skip to content

Commit 4c6bf28

Browse files
authored
Default to not running helpers when loading (#1841)
1 parent a478401 commit 4c6bf28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# testthat (development version)
22

3+
* Helpers should no longer be run twice.
4+
35
* `test_file()` gains a `desc` argument which allows you to run a single
46
test from a file (#1776).
57

R/test-files.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ test_files_setup_env <- function(test_package,
251251
}
252252

253253
find_load_all_args <- function(path) {
254-
default <- list(export_all = TRUE, helpers = TRUE)
254+
default <- list(export_all = TRUE, helpers = FALSE)
255255

256256
desc <- find_description(path)
257257
if (is.null(desc)) {

0 commit comments

Comments
 (0)