You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning, I have created a fairly new package and I am currently cleaning it up. As part of this process I am utilizing covr to manage unit testing. For some reason devtools::package_coverage() seems to accurately report unit test coverage but covr::package_coverage() and covr::report() reports 0.00% coverage. This is confusing to me since the devtools::test_coverage() documentation states that it is simply a wrapper around covr::package_coverage() and covr::report(). My package, for reprex, can be found here.
The text was updated successfully, but these errors were encountered:
All of your tests have testthat::skip_on_cran() in them. covr::package_coverage() runs the tests as in the exact same way that CRAN does, e.g. it has no knowledge of devtools or testthat. In particular it does not set the NOT_CRAN environment variable, which is how testthat / devtools denotes if a test is running 'on CRAN' or not.
run Sys.setenv(NOT_CRAN = "true") before calling covr::package_coverage() or covr::report() if you want these tests to run.
Good morning, I have created a fairly new package and I am currently cleaning it up. As part of this process I am utilizing covr to manage unit testing. For some reason devtools::package_coverage() seems to accurately report unit test coverage but covr::package_coverage() and covr::report() reports 0.00% coverage. This is confusing to me since the devtools::test_coverage() documentation states that it is simply a wrapper around covr::package_coverage() and covr::report(). My package, for reprex, can be found here.
The text was updated successfully, but these errors were encountered: