We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_coverage_active_file()
1 parent b07bfe5 commit 0c6c11cCopy full SHA for 0c6c11c
1 file changed
R/test.R
@@ -128,6 +128,11 @@ test_coverage_active_file <- function(
128
pkg <- as.package(test_dir)
129
130
env <- load_all(pkg$path, quiet = TRUE, export_all = export_all)$env
131
+
132
+ # Must capture before local_test_directory() sets TESTTHAT envvar,
133
+ # which causes rlang::is_interactive() to return FALSE
134
+ report <- report_default(report)
135
136
# this always ends up using the package DESCRIPTION, which will refer
137
# to the source package because of the load_all() above
138
testthat::local_test_directory(test_dir, pkg$package)
0 commit comments