skip_on_cran()
tests will reduce code coverage readout in assess_covr_coverage()
#337
Labels
Difficulty: Medium
Mild design and/or technical implementation challenges
Enhancement
New feature or request
Some package test files will include
testthat::skip_on_cran()
. A use case I am aware of is to reduce runtime when deploying to CRAN and thus prevent package rejection. In the context of test coverage this means that tests are likely functional but omitted on CRAN only for technical reasons.In the current setup, packages may return artificially low scores with respect to code coverage.
Here's a related SO thread for some additional context:
https://stackoverflow.com/questions/76153396/how-to-include-tests-with-skip-on-cran-when-calling-covrpackage-coverage
Example (22.84% vs. 95.18%):
This needs some minutes to complete.
The text was updated successfully, but these errors were encountered: