Skip to content

Commit bf53a34

Browse files
committed
Suppress call + traceback
1 parent 633f1de commit bf53a34

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

R/test-files.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,18 @@ test_files_check <- function(
325325
stop_on_warning = FALSE
326326
) {
327327
if (stop_on_failure && !all_passed(results)) {
328-
cli::cli_abort("Test failures.")
328+
cli::cli_abort(
329+
"Test failures.",
330+
call = NULL,
331+
trace = data.frame()
332+
)
329333
}
330334
if (stop_on_warning && any_warnings(results)) {
331-
cli::cli_abort("Tests generated warnings.")
335+
cli::cli_abort(
336+
"Tests generated warnings.",
337+
call = NULL,
338+
trace = data.frame()
339+
)
332340
}
333341

334342
invisible(results)

0 commit comments

Comments
 (0)