covr
covr copied to clipboard
Test coverage reports for R
Over in https://github.com/duckdb/duckdb/pull/3718, covr is failing with: ``` Error in `readRDS()`: ! error reading from connection Backtrace: ▆ 1. └─devtools:::test_coverage() 2. └─covr::package_coverage(pkg$path, ...) 3. ├─covr:::merge_coverage(trace_files) at covr/R/covr.R:494:2 4. └─covr:::merge_coverage.character(trace_files) at...
Hello. I loaded the package, produced a 'cov
`package_coverage(..., code = character())` allows for additional test code to be run. The `code` argument should be a character vector of lines of code. This currently fails for `length(code) >...
Posting this primarily as a TODO item for myself, as this is related to code that I contributed. ### Overview Discovered when running `covr::package_coverage` with `options(covr.record_tests)` against package `renv`, it...
### Background We use [klmr/box](https://github.com/klmr/box) (previously we used [wahani/modules](https://github.com/wahani/modules)) to structure the code of our Shiny apps. These packages bring a module/import system similar to what you can find in...
I'm trying to get coverage report for some functions not in a package but just some script files. I'm using some testthat::expect_snapshot checks . My test are sucessful but when...
This can be reproduced with : package code : ``` foo
Running my tests of [recetox-xMSannotator](https://github.com/hechth/recetox-xMSannotator/tree/refactoring) using `devtools::test()` works completely fine, but calling `covr::package_coverage()` fails in finding local test data. Could it be that some working directories are changed during the...