tests/testthat/test-render_summary.R

test_that("warning when summary cant be created", {

  tempdir <- withr::local_tempdir()

  summary_file <- file.path(tempdir, "folder_not_exists", "summary.html")

  q <- whirl_queue$new()$skip("test.R")

  render_summary(input = q, summary_file = summary_file) |>
    expect_error() |>
    expect_warning()
})

Try the whirl package in your browser

Any scripts or data that you put into this service are public.

whirl documentation built on April 16, 2025, 1:11 a.m.