Skip to content

covr::package_coverage fails to find any tests #628

@roaldarbol

Description

@roaldarbol

So I've been trying to figure this out for hours, and I simply cannot figure it out. I started noticing that my test-coverage GH action reported 0% coverage, and it turns out that it returns NULL (you can find the workflow here), and then I tested covr::package_coverage(quiet = FALSE) locally, and it doesn't seem to register any of the tests. This is the repo: https://github.com/animovement/aniread

Testing with testthat::test_dir("tests") and devtools::test() and checking with devtools::check() runs the tests without any issues, it seems to only happen for covr::package_coverage().

I would love to have gotten to a minimal reproducible example, but I simply cannot figure out why this doesn't work. I should mention that it works for all my other R packages. The commit where it changed from a high coverage to 0 coverage also doesn't really seem super informative: animovement/aniread@425ac8d, and the coverage summary. EDIT: The codecov summary mentioned is no longer available as I tried re-starting the repository on codecov.io to no avail.

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions