Skip to content

Incorrect code coverage for R6 classes with GitHub Actions #629

@BjarkeHautop

Description

@BjarkeHautop

I think this issue belongs here - if not, please point me in the right direction (might also be a codecov issue?). Also, let me know if you want me to try to make an MWE package with the same issue.

The issues are observed on this GitHub repo: https://github.com/BjarkeHautop/causalDisco

On the test-coverage action under Test coverage it says:

# causalDisco Coverage: 52.40%
# R/bnlearn_search.R: 100.00%

And it uploads this codecov link, which says 54.20% coverage.

Furthermore, the codecov main page has R/bnlearn_search.R listed with incorrect line numbers (577 when the R file itself is only 494 lines (including roxygen docs)) and coverage at 62.39%. And it flags some roxygen documentation lines. Here is a screenshot of the codecov website issues: https://imgur.com/a/I1qys9K

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