covr icon indicating copy to clipboard operation
covr copied to clipboard

Report more on failure

Open hadley opened this issue 1 month ago • 1 comments

In dev httr2, I see:

> covr::package_coverage(".")
Error:
! Failure in `/private/tmp/RtmpjTMbDX/R_LIBS975a77c099eb/httr2/httr2-tests/testthat.Rout.fail`
Hide Traceback
    ▆
 1. └─covr::package_coverage(".")
 2.   ├─withr::with_libpaths(...)
 3.   │ └─base::force(code)
 4.   ├─withr::with_envvar(...)
 5.   │ └─base::force(code)
 6.   ├─base::withCallingHandlers(...)
 7.   └─covr:::show_failures(out_dir)

And the only way to debug is to set clean = FALSE and then open the reference file (in this case it was because I'd just upgraded R and hadn't installed all the needed deps, but it's painful when it happens on CI).

hadley avatar Jun 03 '24 12:06 hadley